public interface EnablementResourceModel extends SocialComponent
CSV_SELECTOR, DEFAULT_SELECTOR, INDEX_SELECTOR, PROP_REFERER, QUERY_SELECTOR, TRANSLATE_SELECTOR| Modifier and Type | Method and Description |
|---|---|
void |
createNamedAsset(String key,
Map<String,Object> assetMap) |
Boolean |
getAllowAnonymous() |
Boolean |
getAllowCatalogVisibility() |
Boolean |
getAllowComments() |
Boolean |
getAllowRatings() |
List<EnablementAssetModel> |
getAssets()
Returns an array of resource assets.
|
EnablementAuthorizables |
getAssignees()
Returns an object representing the assignees
|
EnablementAuthorizables |
getAuthors()
Returns an object representing the authors
|
EnablementAuthorizables |
getContacts()
Returns an object representing the contacts
|
String |
getCoverImage() |
String |
getDescription() |
Date |
getDueDate() |
Calendar |
getDueDateAsCalendar() |
String |
getDueDateAsString() |
EnablementCardImage |
getEnablementCardImage() |
String |
getEnablementType() |
EnablementAuthorizables |
getExperts()
Returns an object representing the experts
|
Date |
getFirstPublishedDate()
Returns the first published date
|
EnablementAssetModel |
getFragmentAsset()
Returns an object representing the primary resource asset.
|
String |
getFriendlyDueDate() |
Boolean |
getIsPublished() |
String |
getLanguage() |
EnablementAssetModel |
getLargeAsset()
Returns an object representing the primary resource asset.
|
String |
getName() |
EnablementAssetModel |
getPrimaryAsset()
Returns an object representing the primary resource asset.
|
String |
getPrimaryAssetType()
Returns a the primary asset type
|
Group |
getResourceGroup(String groupId) |
String |
getResourceId() |
String[] |
getResourceTags()
Gets the list of tagIds associated with the given Enablement content.
|
String |
getResourceUID() |
String |
getSite() |
String |
getSiteId() |
String |
getSiteUID() |
EnablementAssetModel |
getSmallAsset()
Returns an object representing the primary resource asset.
|
EnablementSocialModel |
getSocial() |
String |
getTitle() |
void |
importNamedAsset(String name,
JSONArray primaryAssetArray) |
void |
setAnonymousAccess(Boolean allowAnonymousAccess) |
void |
setAuthorizables(String key,
Map<String,Object> authorizableMap) |
void |
setCardImage(String cardImageTmpPath) |
void |
setDescription(String description)
updates resource description
|
void |
setDueDate(Calendar dueDate)
Set due date for a resourse
|
void |
setName(String name)
updates resource name
|
void |
setShowInCatalog(Boolean showInCatalog) |
void |
setSocialResources(String displayName,
Boolean allowComments,
Boolean allowRatings)
Create social resource endpoints.
|
void |
setTags(String[] tags) |
getAsMap, getFriendlyUrl, getId, getParentComponent, getProperties, getProperty, getProperty, getResource, getResourceType, getSourceComponent, getUrl, toJSONStringstatic final String RESOURCE_TYPE
static final String ENABLEMENT_TYPE_VALUE
static final String JCR_TITLE
static final String RESOURCE_NAME
static final String DESCRIPTION
static final String RESOURCE_ID
static final String RESOURCE_UID
static final String RESOURCE_TAGS
static final String ENABLEMENT_TYPE
static final String COVER_IMAGE
static final String SITE
static final String DUE_DATE
static final String PUBLISHED
static final String FIRST_PUBLISHED_BY
static final String ALLOW_COMMENTS
static final String ALLOW_RATINGS
static final String SHOW_IN_CATALOG
static final String ANONYMOUS_ACCESS
static final String AUTHORS
static final String CONTACTS
static final String EXPERTS
static final String ASSIGNEES
static final String DATE_MODIFIED
static final String DATE_CREATED
static final String DATE_PUBLISHED
static final String CARD_IMAGE_PATH
static final String ENROLLMENT_RESOURCE_NAME
static final String REPLICATION_ACTION
static final String APPLY_TO_LIST
static final String DIRECT_ENROLLMENT_QUERY_PROPERTY
static final String TAG_NAMESPACES
static final String DIRECT_ENROLLEE_GROUP_ID
static final String INDIRECT_ENROLLEE_GROUP_ID
static final String REPORT_USERS_GROUP_ID
String getTitle()
String getName()
void setName(String name) throws PersistenceException, EnablementException
PersistenceExceptionEnablementExceptionString getDescription()
void setDescription(String description) throws PersistenceException, EnablementException
PersistenceExceptionEnablementExceptionString getEnablementType()
String getCoverImage()
String getSite()
String getSiteId()
String getSiteUID()
String getLanguage()
String getFriendlyDueDate()
String getDueDateAsString()
Calendar getDueDateAsCalendar()
Date getDueDate()
String getResourceId()
String getResourceUID()
String[] getResourceTags() throws RepositoryException
RepositoryException - on failureBoolean getAllowComments()
Boolean getAllowRatings()
Boolean getIsPublished()
Boolean getAllowAnonymous()
Boolean getAllowCatalogVisibility()
void createNamedAsset(String key, Map<String,Object> assetMap) throws PersistenceException, EnablementException
key - assetMap - PersistenceExceptionEnablementExceptionvoid setSocialResources(String displayName, Boolean allowComments, Boolean allowRatings) throws PersistenceException, EnablementException
displayName - PersistenceExceptionEnablementExceptionvoid setAuthorizables(String key, Map<String,Object> authorizableMap) throws PersistenceException, EnablementException
key - authorizableMap - PersistenceExceptionEnablementExceptionList<EnablementAssetModel> getAssets()
EnablementAssetModel getPrimaryAsset()
EnablementAssetModel getSmallAsset()
EnablementAssetModel getLargeAsset()
EnablementAssetModel getFragmentAsset()
EnablementCardImage getEnablementCardImage()
void setCardImage(String cardImageTmpPath) throws PersistenceException, EnablementException
PersistenceExceptionEnablementExceptionvoid setDueDate(Calendar dueDate) throws EnablementException
dueDate - EnablementExceptionEnablementSocialModel getSocial()
EnablementAuthorizables getContacts()
EnablementAuthorizables getAuthors()
EnablementAuthorizables getExperts()
EnablementAuthorizables getAssignees()
String getPrimaryAssetType()
Date getFirstPublishedDate()
Group getResourceGroup(String groupId)
groupId - void importNamedAsset(String name, JSONArray primaryAssetArray)
name - primaryAssetArray - void setTags(String[] tags) throws EnablementException
tags - EnablementExceptionvoid setShowInCatalog(Boolean showInCatalog) throws EnablementException
showInCatalog - EnablementExceptionvoid setAnonymousAccess(Boolean allowAnonymousAccess) throws EnablementException
showInCatalog - EnablementException"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"