public interface EnablementResourceModel extends SocialComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALLOW_COMMENTS |
static java.lang.String |
ALLOW_RATINGS |
static java.lang.String |
ANONYMOUS_ACCESS |
static java.lang.String |
APPLY_TO_LIST |
static java.lang.String |
ASSIGNEES |
static java.lang.String |
AUTHORS |
static java.lang.String |
CARD_IMAGE_PATH |
static java.lang.String |
CONTACTS |
static java.lang.String |
COVER_IMAGE |
static java.lang.String |
DATE_CREATED |
static java.lang.String |
DATE_MODIFIED |
static java.lang.String |
DATE_PUBLISHED |
static java.lang.String |
DESCRIPTION |
static java.lang.String |
DIRECT_ENROLLEE_GROUP_ID |
static java.lang.String |
DIRECT_ENROLLMENT_QUERY_PROPERTY |
static java.lang.String |
DUE_DATE |
static java.lang.String |
ENABLEMENT_TYPE |
static java.lang.String |
ENABLEMENT_TYPE_DISPLAY_NAME |
static java.lang.String |
ENABLEMENT_TYPE_VALUE |
static java.lang.String |
ENROLLED_USERS |
static java.lang.String |
ENROLLMENT_RESOURCE_NAME |
static java.lang.String |
EXPERTS |
static java.lang.String |
FIRST_PUBLISHED_BY |
static java.lang.String |
INDIRECT_ENROLLEE_GROUP_ID |
static java.lang.String |
JCR_TITLE |
static java.lang.String |
PUBLISHED |
static java.lang.String |
REPLICATION_ACTION |
static java.lang.String |
REPORT_USERS_GROUP_ID |
static java.lang.String |
RESOURCE_ID |
static java.lang.String |
RESOURCE_NAME |
static java.lang.String |
RESOURCE_TAGS |
static java.lang.String |
RESOURCE_TYPE |
static java.lang.String |
RESOURCE_UID |
static java.lang.String |
SEND_ENROLLMENT_EMAIL |
static java.lang.String |
SHOW_IN_CATALOG |
static java.lang.String |
SITE |
static java.lang.String |
TAG_NAMESPACES |
CSV_SELECTOR, DEFAULT_SELECTOR, INDEX_SELECTOR, PROP_REFERER, QUERY_SELECTOR, TRANSLATE_SELECTOR
Modifier and Type | Method and Description |
---|---|
void |
createNamedAsset(java.lang.String key,
java.util.Map<java.lang.String,java.lang.Object> assetMap) |
java.lang.Boolean |
getAllowAnonymous() |
java.lang.Boolean |
getAllowCatalogVisibility() |
java.lang.Boolean |
getAllowComments() |
java.lang.Boolean |
getAllowRatings() |
java.util.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
|
java.lang.String |
getCoverImage() |
java.lang.String |
getDescription() |
java.util.Date |
getDueDate() |
java.util.Calendar |
getDueDateAsCalendar() |
java.lang.String |
getDueDateAsString() |
EnablementCardImage |
getEnablementCardImage() |
java.lang.String |
getEnablementType() |
EnablementAuthorizables |
getExperts()
Returns an object representing the experts
|
java.util.Date |
getFirstPublishedDate()
Returns the first published date
|
EnablementAssetModel |
getFragmentAsset()
Returns an object representing the primary resource asset.
|
java.lang.String |
getFriendlyDueDate() |
java.lang.Boolean |
getIsPublished() |
java.lang.String |
getLanguage() |
EnablementAssetModel |
getLargeAsset()
Returns an object representing the primary resource asset.
|
java.lang.String |
getName() |
EnablementAssetModel |
getPrimaryAsset()
Returns an object representing the primary resource asset.
|
java.lang.String |
getPrimaryAssetType()
Returns a the primary asset type
|
java.lang.String |
getResourceAssetsPath() |
Group |
getResourceGroup(java.lang.String groupId) |
java.lang.String |
getResourceId() |
java.lang.String[] |
getResourceTags()
Gets the list of tagIds associated with the given Enablement content.
|
java.lang.String |
getResourceUID() |
java.lang.String |
getSite() |
java.lang.String |
getSiteId() |
java.lang.String |
getSiteUID() |
EnablementAssetModel |
getSmallAsset()
Returns an object representing the primary resource asset.
|
EnablementSocialModel |
getSocial() |
java.lang.String |
getTitle() |
void |
importNamedAsset(java.lang.String name,
JSONArray primaryAssetArray) |
void |
setAnonymousAccess(java.lang.Boolean allowAnonymousAccess) |
void |
setAuthorizables(java.lang.String key,
java.util.Map<java.lang.String,java.lang.Object> authorizableMap) |
void |
setCardImage(java.lang.String cardImageTmpPath) |
void |
setCoverImagePath(java.lang.String coverImagePath) |
void |
setDescription(java.lang.String description)
updates resource description
|
void |
setDueDate(java.util.Calendar dueDate)
Set due date for a resourse
|
void |
setName(java.lang.String name)
updates resource name
|
void |
setShowInCatalog(java.lang.Boolean showInCatalog) |
void |
setSocialResources(java.lang.String displayName,
java.lang.Boolean allowComments,
java.lang.Boolean allowRatings)
Create social resource endpoints.
|
void |
setTags(java.lang.String[] tags) |
getAsMap, getFriendlyUrl, getId, getParentComponent, getProperties, getProperty, getProperty, getResource, getResourceType, getSourceComponent, getUrl, toJSONString
static final java.lang.String RESOURCE_TYPE
static final java.lang.String ENABLEMENT_TYPE_VALUE
static final java.lang.String ENABLEMENT_TYPE_DISPLAY_NAME
static final java.lang.String JCR_TITLE
static final java.lang.String RESOURCE_NAME
static final java.lang.String DESCRIPTION
static final java.lang.String RESOURCE_ID
static final java.lang.String RESOURCE_UID
static final java.lang.String RESOURCE_TAGS
static final java.lang.String ENABLEMENT_TYPE
static final java.lang.String COVER_IMAGE
static final java.lang.String SITE
static final java.lang.String DUE_DATE
static final java.lang.String PUBLISHED
static final java.lang.String FIRST_PUBLISHED_BY
static final java.lang.String ALLOW_COMMENTS
static final java.lang.String ALLOW_RATINGS
static final java.lang.String SHOW_IN_CATALOG
static final java.lang.String ANONYMOUS_ACCESS
static final java.lang.String AUTHORS
static final java.lang.String CONTACTS
static final java.lang.String EXPERTS
static final java.lang.String ASSIGNEES
static final java.lang.String DATE_MODIFIED
static final java.lang.String DATE_CREATED
static final java.lang.String DATE_PUBLISHED
static final java.lang.String CARD_IMAGE_PATH
static final java.lang.String ENROLLMENT_RESOURCE_NAME
static final java.lang.String ENROLLED_USERS
static final java.lang.String SEND_ENROLLMENT_EMAIL
static final java.lang.String REPLICATION_ACTION
static final java.lang.String APPLY_TO_LIST
static final java.lang.String DIRECT_ENROLLMENT_QUERY_PROPERTY
static final java.lang.String TAG_NAMESPACES
static final java.lang.String DIRECT_ENROLLEE_GROUP_ID
static final java.lang.String INDIRECT_ENROLLEE_GROUP_ID
static final java.lang.String REPORT_USERS_GROUP_ID
java.lang.String getTitle()
java.lang.String getName()
void setName(java.lang.String name) throws PersistenceException, EnablementException
name
- - name of resourcePersistenceException
- thrown if exception occurs while persisting dataEnablementException
- thrown if exception occurs while setting namejava.lang.String getDescription()
void setDescription(java.lang.String description) throws PersistenceException, EnablementException
description
- - description of resourcePersistenceException
- thrown if exception occurs while persisting dataEnablementException
- thrown if exception occurs while setting descriptionjava.lang.String getEnablementType()
java.lang.String getCoverImage()
java.lang.String getSite()
java.lang.String getSiteId()
java.lang.String getSiteUID()
java.lang.String getLanguage()
java.lang.String getFriendlyDueDate()
java.lang.String getDueDateAsString()
java.util.Calendar getDueDateAsCalendar()
java.util.Date getDueDate()
java.lang.String getResourceId()
java.lang.String getResourceUID()
java.lang.String[] getResourceTags() throws RepositoryException
RepositoryException
- on failurejava.lang.Boolean getAllowComments()
java.lang.Boolean getAllowRatings()
java.lang.Boolean getIsPublished()
java.lang.Boolean getAllowAnonymous()
java.lang.Boolean getAllowCatalogVisibility()
void createNamedAsset(java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> assetMap) throws PersistenceException, EnablementException
key
- - key to be fetch data from mapassetMap
- - mapPersistenceException
- thrown if exception occurs while persisting dataEnablementException
- thrown if exception occurs while creating named assetvoid setSocialResources(java.lang.String displayName, java.lang.Boolean allowComments, java.lang.Boolean allowRatings) throws PersistenceException, EnablementException
displayName
- - name to be displayedallowComments
- - boolean to allow commentsallowRatings
- - boolean to allow ratingsPersistenceException
- thrown if exception occurs while persisting dataEnablementException
- thrown if exception occurs while setting social resourcesvoid setAuthorizables(java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> authorizableMap) throws PersistenceException, EnablementException
key
- - authorizable keyauthorizableMap
- - mapPersistenceException
- thrown if exception occurs while persisting dataEnablementException
- thrown if exception occurs while setting authorizablesjava.util.List<EnablementAssetModel> getAssets()
java.lang.String getResourceAssetsPath()
EnablementAssetModel getPrimaryAsset()
EnablementAssetModel getSmallAsset()
EnablementAssetModel getLargeAsset()
EnablementAssetModel getFragmentAsset()
EnablementCardImage getEnablementCardImage()
void setCoverImagePath(java.lang.String coverImagePath) throws EnablementException
coverImagePath
- - path of cover imageEnablementException
- thrown if exception occurs while setting cover image pathvoid setCardImage(java.lang.String cardImageTmpPath) throws PersistenceException, EnablementException
cardImageTmpPath
- - path of card imagePersistenceException
- thrown if exception occurs while persisting dataEnablementException
- thrown if exception occurs while setting card imagevoid setDueDate(java.util.Calendar dueDate) throws EnablementException
dueDate
- - due date for resource to completeEnablementException
- thrown if exception occurs while setting dude dateEnablementSocialModel getSocial()
EnablementAuthorizables getContacts()
EnablementAuthorizables getAuthors()
EnablementAuthorizables getExperts()
EnablementAuthorizables getAssignees()
java.lang.String getPrimaryAssetType()
java.util.Date getFirstPublishedDate()
Group getResourceGroup(java.lang.String groupId)
groupId
- - id of groupvoid importNamedAsset(java.lang.String name, JSONArray primaryAssetArray)
name
- - name of assetprimaryAssetArray
- - array of primary assetsvoid setTags(java.lang.String[] tags) throws EnablementException
tags
- - tagsEnablementException
- thrown if exception occurs while setting tagsvoid setShowInCatalog(java.lang.Boolean showInCatalog) throws EnablementException
showInCatalog
- - boolean to show resource in catalogEnablementException
- thrown if exception occurs while setting show in catalogvoid setAnonymousAccess(java.lang.Boolean allowAnonymousAccess) throws EnablementException
allowAnonymousAccess
- - boolean to allow anonymous accessEnablementException
- thrown if exception occurs while setting anonymous access"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"