|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalServiceUtil
public class DDMStructureLocalServiceUtil
The utility for the d d m structure local service. This utility wraps DDMStructureLocalServiceImpl
and is the primary access point for service operations in application layer code running on the local server.
This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
DDMStructureLocalService
,
DDMStructureLocalServiceBaseImpl
,
DDMStructureLocalServiceImpl
Constructor Summary | |
---|---|
DDMStructureLocalServiceUtil()
|
Method Summary | |
---|---|
static DDMStructure |
addDDMStructure(DDMStructure ddmStructure)
Adds the d d m structure to the database. |
static void |
addDLFileEntryTypeDDMStructure(long fileEntryTypeId,
DDMStructure ddmStructure)
|
static void |
addDLFileEntryTypeDDMStructure(long fileEntryTypeId,
long structureId)
|
static void |
addDLFileEntryTypeDDMStructures(long fileEntryTypeId,
List<DDMStructure> DDMStructures)
|
static void |
addDLFileEntryTypeDDMStructures(long fileEntryTypeId,
long[] structureIds)
|
static DDMStructure |
addStructure(long userId,
long groupId,
long classNameId,
String structureKey,
Map<Locale,String> nameMap,
Map<Locale,String> descriptionMap,
String xsd,
String storageType,
int type,
ServiceContext serviceContext)
|
static void |
addStructureResources(DDMStructure structure,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
static void |
addStructureResources(DDMStructure structure,
String[] groupPermissions,
String[] guestPermissions)
|
static void |
clearDLFileEntryTypeDDMStructures(long fileEntryTypeId)
|
static DDMStructure |
copyStructure(long userId,
long structureId,
Map<Locale,String> nameMap,
Map<Locale,String> descriptionMap,
ServiceContext serviceContext)
|
static DDMStructure |
createDDMStructure(long structureId)
Creates a new d d m structure with the primary key. |
static DDMStructure |
deleteDDMStructure(DDMStructure ddmStructure)
Deletes the d d m structure from the database. |
static DDMStructure |
deleteDDMStructure(long structureId)
Deletes the d d m structure with the primary key from the database. |
static void |
deleteDLFileEntryTypeDDMStructure(long fileEntryTypeId,
DDMStructure ddmStructure)
|
static void |
deleteDLFileEntryTypeDDMStructure(long fileEntryTypeId,
long structureId)
|
static void |
deleteDLFileEntryTypeDDMStructures(long fileEntryTypeId,
List<DDMStructure> DDMStructures)
|
static void |
deleteDLFileEntryTypeDDMStructures(long fileEntryTypeId,
long[] structureIds)
|
static void |
deleteStructure(DDMStructure structure)
|
static void |
deleteStructure(long structureId)
|
static void |
deleteStructure(long groupId,
String structureKey)
|
static void |
deleteStructures(long groupId)
|
static DynamicQuery |
dynamicQuery()
|
static List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows. |
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows that match the dynamic query. |
static DDMStructure |
fetchDDMStructure(long structureId)
|
static DDMStructure |
fetchStructure(long structureId)
|
static DDMStructure |
fetchStructure(long groupId,
String structureKey)
|
static String |
getBeanIdentifier()
Returns the Spring bean ID for this bean. |
static List<DDMStructure> |
getClassStructures(long classNameId)
Deprecated. getClassStructures(long, long) |
static List<DDMStructure> |
getClassStructures(long classNameId,
int start,
int end)
Deprecated. getClassStructures(long, long, int, int) |
static List<DDMStructure> |
getClassStructures(long companyId,
long classNameId)
|
static List<DDMStructure> |
getClassStructures(long companyId,
long classNameId,
int start,
int end)
|
static List<DDMStructure> |
getClassStructures(long companyId,
long classNameId,
OrderByComparator orderByComparator)
|
static List<DDMStructure> |
getClassStructures(long classNameId,
OrderByComparator orderByComparator)
Deprecated. getClassStructures(long, long, OrderByComparator) |
static DDMStructure |
getDDMStructure(long structureId)
Returns the d d m structure with the primary key. |
static DDMStructure |
getDDMStructureByUuidAndGroupId(String uuid,
long groupId)
Returns the d d m structure with the UUID in the group. |
static List<DDMStructure> |
getDDMStructures(int start,
int end)
Returns a range of all the d d m structures. |
static int |
getDDMStructuresCount()
Returns the number of d d m structures. |
static List<DDMStructure> |
getDLFileEntryTypeDDMStructures(long fileEntryTypeId)
|
static List<DDMStructure> |
getDLFileEntryTypeDDMStructures(long fileEntryTypeId,
int start,
int end)
|
static List<DDMStructure> |
getDLFileEntryTypeDDMStructures(long fileEntryTypeId,
int start,
int end,
OrderByComparator orderByComparator)
|
static int |
getDLFileEntryTypeDDMStructuresCount(long fileEntryTypeId)
|
static List<DDMStructure> |
getDLFileEntryTypeStructures(long dlFileEntryTypeId)
|
static PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
|
static DDMStructureLocalService |
getService()
|
static DDMStructure |
getStructure(long structureId)
|
static DDMStructure |
getStructure(long groupId,
String structureKey)
|
static List<DDMStructure> |
getStructure(long groupId,
String name,
String description)
|
static List<DDMStructure> |
getStructureEntries()
Deprecated. getStructures() |
static List<DDMStructure> |
getStructureEntries(long groupId)
Deprecated. getStructures(long) |
static List<DDMStructure> |
getStructureEntries(long groupId,
int start,
int end)
Deprecated. getStructures(long, int, int) |
static List<DDMStructure> |
getStructures()
|
static List<DDMStructure> |
getStructures(long groupId)
|
static List<DDMStructure> |
getStructures(long groupId,
int start,
int end)
|
static int |
getStructuresCount(long groupId)
|
static boolean |
hasDLFileEntryTypeDDMStructure(long fileEntryTypeId,
long structureId)
|
static boolean |
hasDLFileEntryTypeDDMStructures(long fileEntryTypeId)
|
static List<DDMStructure> |
search(long companyId,
long[] groupIds,
long[] classNameIds,
String keywords,
int start,
int end,
OrderByComparator orderByComparator)
|
static List<DDMStructure> |
search(long companyId,
long[] groupIds,
long[] classNameIds,
String name,
String description,
String storageType,
int type,
boolean andOperator,
int start,
int end,
OrderByComparator orderByComparator)
|
static int |
searchCount(long companyId,
long[] groupIds,
long[] classNameIds,
String keywords)
|
static int |
searchCount(long companyId,
long[] groupIds,
long[] classNameIds,
String name,
String description,
String storageType,
int type,
boolean andOperator)
|
static void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean. |
static void |
setDLFileEntryTypeDDMStructures(long fileEntryTypeId,
long[] structureIds)
|
void |
setService(DDMStructureLocalService service)
Deprecated. |
static DDMStructure |
updateDDMStructure(DDMStructure ddmStructure)
Updates the d d m structure in the database or adds it if it does not yet exist. |
static DDMStructure |
updateDDMStructure(DDMStructure ddmStructure,
boolean merge)
Updates the d d m structure in the database or adds it if it does not yet exist. |
static DDMStructure |
updateStructure(long structureId,
Map<Locale,String> nameMap,
Map<Locale,String> descriptionMap,
String xsd,
ServiceContext serviceContext)
|
static DDMStructure |
updateStructure(long groupId,
String structureKey,
Map<Locale,String> nameMap,
Map<Locale,String> descriptionMap,
String xsd,
ServiceContext serviceContext)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DDMStructureLocalServiceUtil()
Method Detail |
---|
public static DDMStructure addDDMStructure(DDMStructure ddmStructure) throws SystemException
ddmStructure
- the d d m structure
SystemException
- if a system exception occurredpublic static DDMStructure createDDMStructure(long structureId)
structureId
- the primary key for the new d d m structure
public static DDMStructure deleteDDMStructure(long structureId) throws PortalException, SystemException
structureId
- the primary key of the d d m structure
PortalException
- if a d d m structure with the primary key could not be found
SystemException
- if a system exception occurredpublic static DDMStructure deleteDDMStructure(DDMStructure ddmStructure) throws SystemException
ddmStructure
- the d d m structure
SystemException
- if a system exception occurredpublic static DynamicQuery dynamicQuery()
public static List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query
SystemException
- if a system exception occurredpublic static DDMStructure fetchDDMStructure(long structureId) throws SystemException
SystemException
public static DDMStructure getDDMStructure(long structureId) throws PortalException, SystemException
structureId
- the primary key of the d d m structure
PortalException
- if a d d m structure with the primary key could not be found
SystemException
- if a system exception occurredpublic static PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException, SystemException
PortalException
SystemException
public static DDMStructure getDDMStructureByUuidAndGroupId(String uuid, long groupId) throws PortalException, SystemException
uuid
- the UUID of d d m structuregroupId
- the group id of the d d m structure
PortalException
- if a d d m structure with the UUID in the group could not be found
SystemException
- if a system exception occurredpublic static List<DDMStructure> getDDMStructures(int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
start
- the lower bound of the range of d d m structuresend
- the upper bound of the range of d d m structures (not inclusive)
SystemException
- if a system exception occurredpublic static int getDDMStructuresCount() throws SystemException
SystemException
- if a system exception occurredpublic static DDMStructure updateDDMStructure(DDMStructure ddmStructure) throws SystemException
ddmStructure
- the d d m structure
SystemException
- if a system exception occurredpublic static DDMStructure updateDDMStructure(DDMStructure ddmStructure, boolean merge) throws SystemException
ddmStructure
- the d d m structuremerge
- whether to merge the d d m structure with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)
for an explanation.
SystemException
- if a system exception occurredpublic static void addDLFileEntryTypeDDMStructure(long fileEntryTypeId, long structureId) throws SystemException
SystemException
- if a system exception occurredpublic static void addDLFileEntryTypeDDMStructure(long fileEntryTypeId, DDMStructure ddmStructure) throws SystemException
SystemException
- if a system exception occurredpublic static void addDLFileEntryTypeDDMStructures(long fileEntryTypeId, long[] structureIds) throws SystemException
SystemException
- if a system exception occurredpublic static void addDLFileEntryTypeDDMStructures(long fileEntryTypeId, List<DDMStructure> DDMStructures) throws SystemException
SystemException
- if a system exception occurredpublic static void clearDLFileEntryTypeDDMStructures(long fileEntryTypeId) throws SystemException
SystemException
- if a system exception occurredpublic static void deleteDLFileEntryTypeDDMStructure(long fileEntryTypeId, long structureId) throws SystemException
SystemException
- if a system exception occurredpublic static void deleteDLFileEntryTypeDDMStructure(long fileEntryTypeId, DDMStructure ddmStructure) throws SystemException
SystemException
- if a system exception occurredpublic static void deleteDLFileEntryTypeDDMStructures(long fileEntryTypeId, long[] structureIds) throws SystemException
SystemException
- if a system exception occurredpublic static void deleteDLFileEntryTypeDDMStructures(long fileEntryTypeId, List<DDMStructure> DDMStructures) throws SystemException
SystemException
- if a system exception occurredpublic static List<DDMStructure> getDLFileEntryTypeDDMStructures(long fileEntryTypeId) throws SystemException
SystemException
- if a system exception occurredpublic static List<DDMStructure> getDLFileEntryTypeDDMStructures(long fileEntryTypeId, int start, int end) throws SystemException
SystemException
- if a system exception occurredpublic static List<DDMStructure> getDLFileEntryTypeDDMStructures(long fileEntryTypeId, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
- if a system exception occurredpublic static int getDLFileEntryTypeDDMStructuresCount(long fileEntryTypeId) throws SystemException
SystemException
- if a system exception occurredpublic static boolean hasDLFileEntryTypeDDMStructure(long fileEntryTypeId, long structureId) throws SystemException
SystemException
- if a system exception occurredpublic static boolean hasDLFileEntryTypeDDMStructures(long fileEntryTypeId) throws SystemException
SystemException
- if a system exception occurredpublic static void setDLFileEntryTypeDDMStructures(long fileEntryTypeId, long[] structureIds) throws SystemException
SystemException
- if a system exception occurredpublic static String getBeanIdentifier()
public static void setBeanIdentifier(String beanIdentifier)
beanIdentifier
- the Spring bean ID for this beanpublic static DDMStructure addStructure(long userId, long groupId, long classNameId, String structureKey, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, String xsd, String storageType, int type, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static void addStructureResources(DDMStructure structure, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException, SystemException
PortalException
SystemException
public static void addStructureResources(DDMStructure structure, String[] groupPermissions, String[] guestPermissions) throws PortalException, SystemException
PortalException
SystemException
public static DDMStructure copyStructure(long userId, long structureId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static void deleteStructure(DDMStructure structure) throws PortalException, SystemException
PortalException
SystemException
public static void deleteStructure(long structureId) throws PortalException, SystemException
PortalException
SystemException
public static void deleteStructure(long groupId, String structureKey) throws PortalException, SystemException
PortalException
SystemException
public static void deleteStructures(long groupId) throws PortalException, SystemException
PortalException
SystemException
public static DDMStructure fetchStructure(long structureId) throws SystemException
SystemException
public static DDMStructure fetchStructure(long groupId, String structureKey) throws SystemException
SystemException
public static List<DDMStructure> getClassStructures(long classNameId) throws SystemException
getClassStructures(long, long)
SystemException
public static List<DDMStructure> getClassStructures(long classNameId, int start, int end) throws SystemException
getClassStructures(long, long, int, int)
SystemException
public static List<DDMStructure> getClassStructures(long companyId, long classNameId) throws SystemException
SystemException
public static List<DDMStructure> getClassStructures(long companyId, long classNameId, int start, int end) throws SystemException
SystemException
public static List<DDMStructure> getClassStructures(long companyId, long classNameId, OrderByComparator orderByComparator) throws SystemException
SystemException
public static List<DDMStructure> getClassStructures(long classNameId, OrderByComparator orderByComparator) throws SystemException
getClassStructures(long, long, OrderByComparator)
SystemException
public static List<DDMStructure> getDLFileEntryTypeStructures(long dlFileEntryTypeId) throws SystemException
SystemException
public static DDMStructure getStructure(long structureId) throws PortalException, SystemException
PortalException
SystemException
public static DDMStructure getStructure(long groupId, String structureKey) throws PortalException, SystemException
PortalException
SystemException
public static List<DDMStructure> getStructure(long groupId, String name, String description) throws SystemException
SystemException
public static List<DDMStructure> getStructureEntries() throws SystemException
getStructures()
SystemException
public static List<DDMStructure> getStructureEntries(long groupId) throws SystemException
getStructures(long)
SystemException
public static List<DDMStructure> getStructureEntries(long groupId, int start, int end) throws SystemException
getStructures(long, int, int)
SystemException
public static List<DDMStructure> getStructures() throws SystemException
SystemException
public static List<DDMStructure> getStructures(long groupId) throws SystemException
SystemException
public static List<DDMStructure> getStructures(long groupId, int start, int end) throws SystemException
SystemException
public static int getStructuresCount(long groupId) throws SystemException
SystemException
public static List<DDMStructure> search(long companyId, long[] groupIds, long[] classNameIds, String keywords, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
public static List<DDMStructure> search(long companyId, long[] groupIds, long[] classNameIds, String name, String description, String storageType, int type, boolean andOperator, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
public static int searchCount(long companyId, long[] groupIds, long[] classNameIds, String keywords) throws SystemException
SystemException
public static int searchCount(long companyId, long[] groupIds, long[] classNameIds, String name, String description, String storageType, int type, boolean andOperator) throws SystemException
SystemException
public static DDMStructure updateStructure(long structureId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, String xsd, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static DDMStructure updateStructure(long groupId, String structureKey, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, String xsd, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static DDMStructureLocalService getService()
public void setService(DDMStructureLocalService service)
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |