@ProviderType
public class AssetTagLocalServiceUtil
extends java.lang.Object
com.liferay.portlet.asset.service.impl.AssetTagLocalServiceImpl and is the
primary access point for service operations in application layer code running
on the local server. 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.AssetTagLocalService,
com.liferay.portlet.asset.service.base.AssetTagLocalServiceBaseImpl,
com.liferay.portlet.asset.service.impl.AssetTagLocalServiceImpl| Constructor and Description |
|---|
AssetTagLocalServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addAssetEntryAssetTag(long entryId,
AssetTag assetTag) |
static void |
addAssetEntryAssetTag(long entryId,
long tagId) |
static void |
addAssetEntryAssetTags(long entryId,
java.util.List<AssetTag> AssetTags) |
static void |
addAssetEntryAssetTags(long entryId,
long[] tagIds) |
static AssetTag |
addAssetTag(AssetTag assetTag)
Adds the asset tag to the database.
|
static AssetTag |
addTag(long userId,
java.lang.String name,
java.lang.String[] tagProperties,
ServiceContext serviceContext) |
static void |
addTagResources(AssetTag tag,
boolean addGroupPermissions,
boolean addGuestPermissions) |
static void |
addTagResources(AssetTag tag,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions) |
static java.util.List<AssetTag> |
checkTags(long userId,
Group group,
java.lang.String[] names)
Returns the tags matching the group and names, creating new tags with the
names if the group doesn't already have them.
|
static void |
checkTags(long userId,
long groupId,
java.lang.String[] names) |
static void |
clearAssetEntryAssetTags(long entryId) |
static AssetTag |
createAssetTag(long tagId)
Creates a new asset tag with the primary key.
|
static AssetTag |
decrementAssetCount(long tagId,
long classNameId) |
static void |
deleteAssetEntryAssetTag(long entryId,
AssetTag assetTag) |
static void |
deleteAssetEntryAssetTag(long entryId,
long tagId) |
static void |
deleteAssetEntryAssetTags(long entryId,
java.util.List<AssetTag> AssetTags) |
static void |
deleteAssetEntryAssetTags(long entryId,
long[] tagIds) |
static AssetTag |
deleteAssetTag(AssetTag assetTag)
Deletes the asset tag from the database.
|
static AssetTag |
deleteAssetTag(long tagId)
Deletes the asset tag with the primary key from the database.
|
static void |
deleteGroupTags(long groupId) |
static void |
deleteTag(AssetTag tag) |
static void |
deleteTag(long tagId) |
static DynamicQuery |
dynamicQuery() |
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
static java.util.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 long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows that match the dynamic query.
|
static AssetTag |
fetchAssetTag(long tagId) |
static java.util.List<AssetTag> |
getAssetEntryAssetTags(long entryId) |
static java.util.List<AssetTag> |
getAssetEntryAssetTags(long entryId,
int start,
int end) |
static java.util.List<AssetTag> |
getAssetEntryAssetTags(long entryId,
int start,
int end,
OrderByComparator orderByComparator) |
static int |
getAssetEntryAssetTagsCount(long entryId) |
static AssetTag |
getAssetTag(long tagId)
Returns the asset tag with the primary key.
|
static java.util.List<AssetTag> |
getAssetTags(int start,
int end)
Returns a range of all the asset tags.
|
static int |
getAssetTagsCount()
Returns the number of asset tags.
|
static java.lang.String |
getBeanIdentifier()
Returns the Spring bean ID for this bean.
|
static java.util.List<AssetTag> |
getEntryTags(long entryId) |
static java.util.List<AssetTag> |
getGroupsTags(long[] groupIds) |
static java.util.List<AssetTag> |
getGroupTags(long groupId) |
static java.util.List<AssetTag> |
getGroupTags(long groupId,
int start,
int end) |
static int |
getGroupTagsCount(long groupId) |
static PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
static AssetTagLocalService |
getService() |
static java.util.List<AssetTag> |
getSocialActivityCounterOffsetTags(long groupId,
java.lang.String socialActivityCounterName,
int startOffset,
int endOffset) |
static java.util.List<AssetTag> |
getSocialActivityCounterPeriodTags(long groupId,
java.lang.String socialActivityCounterName,
int startPeriod,
int endPeriod) |
static AssetTag |
getTag(long tagId) |
static AssetTag |
getTag(long groupId,
java.lang.String name) |
static long[] |
getTagIds(long[] groupIds,
java.lang.String name) |
static long[] |
getTagIds(long[] groupIds,
java.lang.String[] names) |
static long[] |
getTagIds(long groupId,
java.lang.String[] names) |
static java.lang.String[] |
getTagNames() |
static java.lang.String[] |
getTagNames(long classNameId,
long classPK) |
static java.lang.String[] |
getTagNames(java.lang.String className,
long classPK) |
static java.util.List<AssetTag> |
getTags() |
static java.util.List<AssetTag> |
getTags(long classNameId,
long classPK) |
static java.util.List<AssetTag> |
getTags(long groupId,
long classNameId,
java.lang.String name) |
static java.util.List<AssetTag> |
getTags(long groupId,
long classNameId,
java.lang.String name,
int start,
int end) |
static java.util.List<AssetTag> |
getTags(java.lang.String className,
long classPK) |
static int |
getTagsSize(long groupId,
long classNameId,
java.lang.String name) |
static boolean |
hasAssetEntryAssetTag(long entryId,
long tagId) |
static boolean |
hasAssetEntryAssetTags(long entryId) |
static boolean |
hasTag(long groupId,
java.lang.String name) |
static AssetTag |
incrementAssetCount(long tagId,
long classNameId) |
static void |
mergeTags(long fromTagId,
long toTagId,
boolean overrideProperties) |
static java.util.List<AssetTag> |
search(long[] groupIds,
java.lang.String name,
java.lang.String[] tagProperties,
int start,
int end) |
static java.util.List<AssetTag> |
search(long groupId,
java.lang.String name,
java.lang.String[] tagProperties,
int start,
int end) |
static void |
setAssetEntryAssetTags(long entryId,
long[] tagIds) |
static void |
setBeanIdentifier(java.lang.String beanIdentifier)
Sets the Spring bean ID for this bean.
|
void |
setService(AssetTagLocalService service)
Deprecated.
As of 6.2.0
|
static AssetTag |
updateAssetTag(AssetTag assetTag)
Updates the asset tag in the database or adds it if it does not yet exist.
|
static AssetTag |
updateTag(long userId,
long tagId,
java.lang.String name,
java.lang.String[] tagProperties,
ServiceContext serviceContext) |
public static AssetTag addAssetTag(AssetTag assetTag) throws SystemException
assetTag - the asset tagSystemException - if a system exception occurredpublic static AssetTag createAssetTag(long tagId)
tagId - the primary key for the new asset tagpublic static AssetTag deleteAssetTag(long tagId) throws PortalException, SystemException
tagId - the primary key of the asset tagPortalException - if a asset tag with the primary key could not be foundSystemException - if a system exception occurredpublic static AssetTag deleteAssetTag(AssetTag assetTag) throws SystemException
assetTag - the asset tagSystemException - if a system exception occurredpublic static DynamicQuery dynamicQuery()
public static java.util.List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery - the dynamic querySystemException - if a system exception occurredpublic static java.util.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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 java.util.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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 querySystemException - if a system exception occurredpublic static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) throws SystemException
dynamicQuery - the dynamic queryprojection - the projection to apply to the querySystemException - if a system exception occurredpublic static AssetTag fetchAssetTag(long tagId) throws SystemException
SystemExceptionpublic static AssetTag getAssetTag(long tagId) throws PortalException, SystemException
tagId - the primary key of the asset tagPortalException - if a asset tag with the primary key could not be foundSystemException - if a system exception occurredpublic static PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static java.util.List<AssetTag> getAssetTags(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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of asset tagsend - the upper bound of the range of asset tags (not inclusive)SystemException - if a system exception occurredpublic static int getAssetTagsCount()
throws SystemException
SystemException - if a system exception occurredpublic static AssetTag updateAssetTag(AssetTag assetTag) throws SystemException
assetTag - the asset tagSystemException - if a system exception occurredpublic static void addAssetEntryAssetTag(long entryId,
long tagId)
throws SystemException
SystemException - if a system exception occurredpublic static void addAssetEntryAssetTag(long entryId,
AssetTag assetTag)
throws SystemException
SystemException - if a system exception occurredpublic static void addAssetEntryAssetTags(long entryId,
long[] tagIds)
throws SystemException
SystemException - if a system exception occurredpublic static void addAssetEntryAssetTags(long entryId,
java.util.List<AssetTag> AssetTags)
throws SystemException
SystemException - if a system exception occurredpublic static void clearAssetEntryAssetTags(long entryId)
throws SystemException
SystemException - if a system exception occurredpublic static void deleteAssetEntryAssetTag(long entryId,
long tagId)
throws SystemException
SystemException - if a system exception occurredpublic static void deleteAssetEntryAssetTag(long entryId,
AssetTag assetTag)
throws SystemException
SystemException - if a system exception occurredpublic static void deleteAssetEntryAssetTags(long entryId,
long[] tagIds)
throws SystemException
SystemException - if a system exception occurredpublic static void deleteAssetEntryAssetTags(long entryId,
java.util.List<AssetTag> AssetTags)
throws SystemException
SystemException - if a system exception occurredpublic static java.util.List<AssetTag> getAssetEntryAssetTags(long entryId) throws SystemException
SystemException - if a system exception occurredpublic static java.util.List<AssetTag> getAssetEntryAssetTags(long entryId, int start, int end) throws SystemException
SystemException - if a system exception occurredpublic static java.util.List<AssetTag> getAssetEntryAssetTags(long entryId, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException - if a system exception occurredpublic static int getAssetEntryAssetTagsCount(long entryId)
throws SystemException
SystemException - if a system exception occurredpublic static boolean hasAssetEntryAssetTag(long entryId,
long tagId)
throws SystemException
SystemException - if a system exception occurredpublic static boolean hasAssetEntryAssetTags(long entryId)
throws SystemException
SystemException - if a system exception occurredpublic static void setAssetEntryAssetTags(long entryId,
long[] tagIds)
throws SystemException
SystemException - if a system exception occurredpublic static java.lang.String getBeanIdentifier()
public static void setBeanIdentifier(java.lang.String beanIdentifier)
beanIdentifier - the Spring bean ID for this beanpublic static AssetTag addTag(long userId, java.lang.String name, java.lang.String[] tagProperties, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void addTagResources(AssetTag tag, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void addTagResources(AssetTag tag, java.lang.String[] groupPermissions, java.lang.String[] guestPermissions) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static java.util.List<AssetTag> checkTags(long userId, Group group, java.lang.String[] names) throws PortalException, SystemException
For each name, if a tag with that name doesn't already exist for the group, this method creates a new tag with that name for the group. If a tag with that name already exists in the company group, this method copies that company group's tag's properties to the group's new tag.
userId - the primary key of the usergroup - ID the primary key of the tag's groupnames - the tag namesPortalException - if a matching group could not be found, if the
tag's key or value were invalid, or if a portal exception
occurredSystemException - if a system exception occurredpublic static void checkTags(long userId,
long groupId,
java.lang.String[] names)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static AssetTag decrementAssetCount(long tagId, long classNameId) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void deleteGroupTags(long groupId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void deleteTag(AssetTag tag) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void deleteTag(long tagId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static java.util.List<AssetTag> getEntryTags(long entryId) throws SystemException
SystemExceptionpublic static java.util.List<AssetTag> getGroupsTags(long[] groupIds) throws SystemException
SystemExceptionpublic static java.util.List<AssetTag> getGroupTags(long groupId) throws SystemException
SystemExceptionpublic static java.util.List<AssetTag> getGroupTags(long groupId, int start, int end) throws SystemException
SystemExceptionpublic static int getGroupTagsCount(long groupId)
throws SystemException
SystemExceptionpublic static java.util.List<AssetTag> getSocialActivityCounterOffsetTags(long groupId, java.lang.String socialActivityCounterName, int startOffset, int endOffset) throws SystemException
SystemExceptionpublic static java.util.List<AssetTag> getSocialActivityCounterPeriodTags(long groupId, java.lang.String socialActivityCounterName, int startPeriod, int endPeriod) throws SystemException
SystemExceptionpublic static AssetTag getTag(long tagId) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static AssetTag getTag(long groupId, java.lang.String name) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static long[] getTagIds(long groupId,
java.lang.String[] names)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static long[] getTagIds(long[] groupIds,
java.lang.String name)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static long[] getTagIds(long[] groupIds,
java.lang.String[] names)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static java.lang.String[] getTagNames()
throws SystemException
SystemExceptionpublic static java.lang.String[] getTagNames(long classNameId,
long classPK)
throws SystemException
SystemExceptionpublic static java.lang.String[] getTagNames(java.lang.String className,
long classPK)
throws SystemException
SystemExceptionpublic static java.util.List<AssetTag> getTags() throws SystemException
SystemExceptionpublic static java.util.List<AssetTag> getTags(long classNameId, long classPK) throws SystemException
SystemExceptionpublic static java.util.List<AssetTag> getTags(long groupId, long classNameId, java.lang.String name) throws SystemException
SystemExceptionpublic static java.util.List<AssetTag> getTags(long groupId, long classNameId, java.lang.String name, int start, int end) throws SystemException
SystemExceptionpublic static java.util.List<AssetTag> getTags(java.lang.String className, long classPK) throws SystemException
SystemExceptionpublic static int getTagsSize(long groupId,
long classNameId,
java.lang.String name)
throws SystemException
SystemExceptionpublic static boolean hasTag(long groupId,
java.lang.String name)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static AssetTag incrementAssetCount(long tagId, long classNameId) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void mergeTags(long fromTagId,
long toTagId,
boolean overrideProperties)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static java.util.List<AssetTag> search(long groupId, java.lang.String name, java.lang.String[] tagProperties, int start, int end) throws SystemException
SystemExceptionpublic static java.util.List<AssetTag> search(long[] groupIds, java.lang.String name, java.lang.String[] tagProperties, int start, int end) throws SystemException
SystemExceptionpublic static AssetTag updateTag(long userId, long tagId, java.lang.String name, java.lang.String[] tagProperties, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static AssetTagLocalService getService()
public void setService(AssetTagLocalService service)