public abstract class Content extends Identity implements ContentConstants, AppianTypeHolder
ContentService
.
Content is a generic bean that can represent almost any structure that has
to be stored in the database. Currently, it is used to represent knowledge
and rule objects. The specific type of content is represented in the type
and subtype fields. Note that this class is abstract. You must instantiate
it by instantiating a sub-class.ACT_CREATE, ACT_DEACTIVATE, ACT_DELETE, AL_ADMIN, AL_EDITOR, AL_INVALID_ID, AL_NONE, AL_VIEWER, ALLOCATE_FSID, ALLOCATE_GLOBAL_PART, ALLOCATE_PART, APPLICATIONS_ROOT_DESCRIPTION, APPLICATIONS_ROOT_NAME, CHILDREN, COLUMN_ACTION_REQUESTED, COLUMN_ACTION_REQUESTER, COLUMN_ATTRIBUTES, COLUMN_CHANGES_REQUIRE_APPROVAL, COLUMN_CREATED_TIMESTAMP, COLUMN_CREATOR, COLUMN_DESCRIPTION, COLUMN_EXPIRATION_DAYS, COLUMN_EXPIRATION_TIMESTAMP, COLUMN_EXTENSION, COLUMN_FORUM, COLUMN_FSID, COLUMN_FSID_COUNT, COLUMN_ID, COLUMN_LOCKED_BY, COLUMN_LOG, COLUMN_LOG_NAME, COLUMN_METADATA_IDS, COLUMN_NAME, COLUMN_NONE, COLUMN_NUMBER_OF_VERSIONS, COLUMN_PARENT_ID, COLUMN_PARENT_NAME, COLUMN_PARENT_TYPE, COLUMN_PARTITION, COLUMN_PARTITION_NAME, COLUMN_SECURITY, COLUMN_SIZE, COLUMN_STATE, COLUMN_SUBTYPE, COLUMN_TYPE, COLUMN_UPDATED_TIMESTAMP, COLUMN_UUID, COLUMN_VERSION_ID, COLUMN_VERSIONS, COLUMN_VISIBILITY, COMMUNITY_ROOT, CONTENT_SECURITY_TYPE, CREATION_SECURITY_TYPE, FILTER_TYPE_ALL, GC_MOD_DRAFT, GC_MOD_LINKS, GC_MOD_NORMAL, GC_MOD_POPULATE_TYPES_OF_CHILDREN, GC_VERSIONS_AS_FOLDERS, I18N_PREFIX, IMPORT_INVALID_PRIVILEGE, IMPORT_NAME_EXISTS_WITHIN_PARENT, IMPORT_NAME_EXISTS_WITHIN_TYPE, IMPORT_NAME_WITH_UUID_EXISTS_WITHIN_PARENT, IMPORT_UUID_EXISTS_ELSEWHERE, IMPORT_VALID, INFINITY, KM_EXPIRATION_DURATION_CHECK, KM_SECURITY_COMMUNITY, KM_SECURITY_CONTENT_COMMUNITY, KM_SECURITY_CONTENT_FOLDER, KM_SECURITY_CONTENT_KC, KM_SECURITY_FOLDER, KM_SECURITY_KNOWLEDGE_CENTER, KNOWLEDGE_ROOT, KNOWLEDGE_ROOT_SYSTEM_ID, NEGATIVE_INFINITY, NO_CHILDREN, NO_EXPIRATION_TIMESTAMP, NO_FORUM, NO_REVIEW, QUERY_KEYWORDS, RESTRICTION_ROLE_MAP_ROLES, RM_AGGREGATE, RM_EXPLICIT, ROLE_ADMINISTRATORS, ROLE_AUTHORS, ROLE_DENY_ADMINISTRATORS, ROLE_DENY_AUTHORS, ROLE_DENY_READERS, ROLE_MAP_ROLES, ROLE_READERS, RULE_ENCODING, RULES_ROOT_DESCRIPTION, RULES_ROOT_NAME, RULES_ROOT_SYSTEM_ID, SEC_ALL_ADMIN, SEC_ALL_EDITOR, SEC_ALL_VIEWER, SEC_CREATOR_ADMIN, SEC_INH_ADMIN, SEC_INH_ADMIN_MASK, SEC_INH_ALL, SEC_INH_EDITOR, SEC_INH_VIEWER, SEC_PUBLIC, SECURITY_MANAGER_CONFIG, STATE_ACTIVE, STATE_ACTIVE_PENDING_APPROVAL, STATE_ACTIVE_PUBLISHED, STATE_ACTIVE_REJECTED, STATE_PENDING_APPROVAL, STATE_PUBLISHED, STATE_REJECTED, SUBTYPE_CONNECTED_SYSTEM, SUBTYPE_DATA_STORE_CONFIG, SUBTYPE_FOLDER_APPLICATIONS, SUBTYPE_FOLDER_CONNECTED_SYSTEMS, SUBTYPE_FOLDER_DATA_STORE_CONFIGS, SUBTYPE_FOLDER_KNOWLEDGE, SUBTYPE_FOLDER_MIGRATION_FLAGS, SUBTYPE_FOLDER_RULES, SUBTYPE_RULE_CONSTANT, SUBTYPE_RULE_DECISION, SUBTYPE_RULE_DECISION_TABLE, SUBTYPE_RULE_FREEFORM, SUBTYPE_RULE_INTERFACE, SUBTYPE_RULE_OUTBOUND_INTEGRATION, SUBTYPE_RULE_QUERY, SUBYTYPE_MIGRATION_FLAG, SYSADMIN_GRP, SYSADMIN_UTYPE, SYSTEM_ASYNC_INSPECT_FOLDER_NAME, SYSTEM_FOLDER_COVER_PHOTOS_NAME, SYSTEM_FOLDER_OFFLINE_RULE_BUNDLES_NAME, SYSTEM_FOLDER_RECORD_TYPES_NAME, SYSTEM_FOLDER_TEMPO_ATTACHMENTS_ROOT_DESCRIPTION, SYSTEM_FOLDER_TEMPO_ATTACHMENTS_ROOT_NAME, SYSTEM_IX_FOLDER_NAME, SYSTEM_OBJECT_TEMPLATES_FOLDER_NAME, SYSTEM_OPENAPI_FOLDER_NAME, SYSTEM_PACKAGES_FOLDER_NAME, SYSTEM_RECORD_TYPE_NAME_PREFIX, SYSTEM_SYSRULES_DESIGNER_ROOT_DESCRIPTION, SYSTEM_SYSRULES_DESIGNER_ROOT_NAME, SYSTEM_SYSRULES_INTERNAL_ROOT_DESCRIPTION, SYSTEM_SYSRULES_INTERNAL_ROOT_NAME, TYPE_ALL, TYPE_ANY_KC, TYPE_APPLICATION, TYPE_COMMUNITY, TYPE_COMMUNITY_KC, TYPE_CONTAINER, TYPE_CONTENT, TYPE_CUSTOM, TYPE_DOCUMENT, TYPE_FOLDER, TYPE_IGNORE, TYPE_NON_CONTAINER, TYPE_NON_DOCUMENT, TYPE_PERSONAL_KC, TYPE_RULE, UNIQUE_FOR_ALL, UNIQUE_FOR_PARENT, UNIQUE_FOR_SYSTEM_RULES_LATEST_VERSION, UNIQUE_FOR_TYPE, UNIQUE_FOR_TYPE_AND_SUBTYPE_LATEST_VERSION, UNIQUE_FOR_TYPE_LATEST_VERSION, UNIQUE_NONE, UUID_ACTIVE_PROCESSES_REPORT, UUID_ACTIVE_TASKS_GROUP_MEMBERS_REPORT, UUID_ACTIVE_TASKS_GROUP_REPORT, UUID_ACTIVE_TASKS_REPORT, UUID_ALL_PROCESS_MODELS_REPORT, UUID_ALL_PROCESSES_REPORT, UUID_ALL_TASKS_REPORT, UUID_APPLICATIONS_HOME, UUID_APPLICATIONS_ROOT, UUID_ASYNC_INSPECT_FOLDER, UUID_CANCELED_PROCESSES_REPORT, UUID_COMMUNITY_ROOT, UUID_COMPLETED_PROCESSES_REPORT, UUID_COMPLETED_TASKS_REPORT, UUID_CURRENT_TASKS_PER_PROCESS_REPORT, UUID_DATA_STORE_CONFIGS_ROOT_FOLDER, UUID_DEFAULT_COMMUNITY, UUID_EMAIL_FOOTER_TEMPLATE, UUID_EMAIL_HEADER_TEMPLATE, UUID_EMAIL_TEMPLATE_FOLDER, UUID_FAVORITE_PROCESS_MODELS_REPORT, UUID_FAVORITE_PROCESSES_REPORT, UUID_FAVORITE_TASKS_REPORT, UUID_HIGH_PRIORITY_TASKS_REPORT, UUID_IX_FOLDER, UUID_LEADER_MESSAGE_PICTURES_FOLDER, UUID_MIGRATION_FLAGS_ROOT_FOLDER, UUID_MOST_ACTIVE_PROCESS_MODELS_REPORT, UUID_NAVIGATION_CONFIG, UUID_NODE_STATS_PER_PROCESS_MODEL_REPORT, UUID_NODE_STATS_PER_PROCESS_REPORT, UUID_OBJECT_TEMPLATES_FOLDER, UUID_OFFLINE_RULE_BUNDLES_FOLDER, UUID_OPENAPI_FOLDER, UUID_OVERDUE_TASKS_REPORT, UUID_PACKAGES_FOLDER, UUID_PAUSED_PROCESSES_REPORT, UUID_PERFORMANCE_INDICATOR_GREEN, UUID_PERFORMANCE_INDICATOR_RED, UUID_PERFORMANCE_INDICATOR_YELLOW, UUID_PRIORITY_ICONS_FOLDER, UUID_PROCESS_DETAILS_PER_PROCESS_MODEL_REPORT, UUID_PROCESS_INSTANCES_PER_MODEL_REPORT, UUID_PROCESS_MODEL_REPORT_FOLDER, UUID_PROCESS_OPTIMIZATION_REPORTS_FOLDER, UUID_PROCESS_REPORTS_FOLDER, UUID_PROCESSES_STARTED_BY_ME_REPORT, UUID_PROCESSES_WITH_PROBLEMS_REPORT, UUID_RULES_ROOT_FOLDER, UUID_RUNNING_PROCESSES_PER_MODEL_REPORT, UUID_STATISTICS_ACROSS_PROCESSES_REPORT, UUID_SUBPROCESSES_PER_PROCESS_REPORT, UUID_SUMMARY_REPORTS_FOLDER, UUID_SYSTEM_DOC_PRIORITY_HIGH, UUID_SYSTEM_DOC_PRIORITY_LOW, UUID_SYSTEM_DOC_PRIORITY_NORMAL, UUID_SYSTEM_FOLDER_TEMPO_ATTACHMENTS, UUID_SYSTEM_KNOWLEDGE_CENTER, UUID_SYSTEM_RECORD_TYPES_FOLDER, UUID_SYSTEM_REPORTS_FOLDER, UUID_SYSTEM_SYSRULES_DESIGNER_ROOT, UUID_SYSTEM_SYSRULES_FOLDER_DESIGNER, UUID_SYSTEM_SYSRULES_FOLDER_ENGINEERING, UUID_SYSTEM_SYSRULES_FOLDER_EVOLVED_PREVIOUS_VERSIONS, UUID_SYSTEM_SYSRULES_FOLDER_HOME, UUID_SYSTEM_SYSRULES_INTERNAL_ROOT, UUID_TASK_REPORTS_FOLDER, UUID_TASKS_DUE_TODAY_REPORT, UUID_TASKS_FOR_USER_REPORT, UUID_TASKS_PER_PROCESS_MODEL_REPORT, UUID_TEMPORARY_DOCS_FOLDER, UUID_TEMPORARY_DOCS_KC, UUID_USER_COVER_PHOTOS_FOLDER, UUID_USER_PICTURES_FOLDER, UUID_USER_THUMBNAILS_FOLDER, UUID_VERSIONS_PER_PROCESS_MODEL_REPORT, VERSION_CURRENT, VERSION_ORIGINAL, VIS_ADVERTISE, VIS_DEFAULT, VIS_HIERARCHY, VIS_INDEXABLE, VIS_QUOTA, VIS_SEARCHABLE, VIS_SYSTEM, VIS_UNLOGGED
Modifier | Constructor and Description |
---|---|
|
Content()
Default constructor (necessary for return converters).
|
protected |
Content(int type_)
Constructs a new
Content bean with the given type. |
protected |
Content(java.lang.Integer type_)
Constructs a new
Content bean with the given type. |
Modifier and Type | Method and Description |
---|---|
void |
addSecurity(int security_)
Adds security by bitwise orring it with the current security.
|
void |
addSecurity(java.lang.Integer security_)
Adds security.
|
void |
addVisibility(int visibility_)
Adds visibility by bitwise orring it with the current visibility.
|
void |
addVisibility(java.lang.Integer visibility_)
Adds visibility.
|
void |
fillInAppianTypes(AppianTypeCache cache_)
Adds the primary keys of any Appian-typed objects that are used by the
mapping of this node to the given cache.
|
java.lang.Integer |
getActionRequested()
Gets the action that was requested and is currently pending approval.
|
java.lang.String |
getActionRequester()
Gets the username of the user that requested the action currently
pending approval.
|
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Gets the attribute map, which can be used to store arbitary properties on
content objects.
|
java.lang.Boolean |
getChangesRequireApproval()
Gets whether changes require approval.
|
java.sql.Timestamp |
getCreatedTimestamp()
Gets the date and time the content was created.
|
java.lang.String |
getCreator()
Gets the username of the user that created the content.
|
java.lang.Long |
getCurrentContentId()
Gets the content ID of the current (aka latest) version of this content.
|
java.lang.Integer |
getDepth()
Gets the depth (if the content was returned by a service method that
populates the depth).
|
java.lang.String |
getDescription()
Gets the description.
|
java.lang.String |
getDisplayName()
Gets the display name of the object.
|
java.sql.Timestamp |
getExpirationTimestamp()
Gets the date and time that the content will expire.
|
java.lang.Boolean |
getFavorite()
Gets whether this is favorite.
|
java.lang.Long |
getForum()
Deprecated.
The Discussion Forums functionality will be removed in a future release. Use the News feed
and related smart services to build applications with similar functionality.
|
java.lang.Integer |
getLatestVersionId()
Snapshot of the Content's latest version ID.
|
java.sql.Timestamp |
getLockedAt()
Gets the date and time that the content was locked, or
null if the content is not locked. |
java.lang.String |
getLockedBy()
Deprecated.
|
java.lang.String |
getLockedByUsername()
Gets the username of the user that has locked the content, or
blank if the content is not locked.
|
java.lang.Long |
getLog()
Gets the log ID sent to the collaboration statistics server.
|
java.lang.String |
getLogName()
Gets the name of the log kept by the collaboration statistics server.
|
java.lang.Long |
getNumberOfVersions()
Gets the number of versions of the content that currently exist, excluding the
current version.
|
java.lang.Long |
getOriginalContentId()
Gets the content ID of the original version of this content.
|
java.lang.Long |
getParent()
Gets the ID of the parent (the container that contains this content).
|
java.lang.String |
getParentName()
Gets the name of the parent (the container that contains this content).
|
java.lang.Integer |
getParentType()
Gets the type of the parent (the container that contains this content).
|
java.lang.Integer |
getPartition()
Gets the ID of the partition.
|
java.lang.String |
getPartitionName()
Gets the name of the partition.
|
java.lang.Integer |
getPendingApprovalCount() |
ContentRoleSet |
getRoleSet()
Gets the role set.
|
java.lang.Integer |
getSecurity()
Gets the security, which indicates that the role map should be modified
in some way.
|
java.lang.Integer |
getSize()
Gets the size of the content object.
|
java.lang.Integer |
getState()
Gets the current state of the content.
|
java.lang.Integer |
getSubtype()
Gets the subtype of the object.
|
java.lang.Integer |
getType()
Gets the type of the content.
|
java.lang.Integer |
getTypesOfChildren()
Gets the typemask for the types of children that exist for this content (note:
this only applies to containers).
|
java.sql.Timestamp |
getUpdatedTimestamp()
Gets the date and time that the content was last updated.
|
java.lang.String[] |
getUsersPendingAccess()
Gets the list of usernames of users that are pending access (used for
non-public content).
|
java.lang.String |
getUuid()
Returns the UUID of the object.
|
java.lang.Integer |
getVersionId()
Gets the ID of the content version.
|
java.lang.Long[] |
getVersions()
Deprecated.
|
java.lang.Integer |
getVisibility()
Gets the visibility, which indicates which parts of the application
can see the content.
|
boolean |
hasChildrenOfType(int typeMask_)
Checks whether this content has children of a particular type or any
of the types in the given type mask.
|
void |
removeSecurity(int security_)
Removes security by unsetting in the security any bits in the security
parameter that were previously set.
|
void |
removeSecurity(java.lang.Integer security_)
Removes security.
|
void |
removeVisibility(int visibility_)
Removes visibility by unsetting in the security any bits in the security
parameter that were previously set.
|
void |
removeVisibility(java.lang.Integer visibility_)
Removes visibility.
|
boolean |
securityContains(int security_)
Check whether the current security contains the security passed in.
|
boolean |
securityContains(java.lang.Integer security_)
Check whether the current security contains the security passed in.
|
void |
setActionRequested(java.lang.Integer actionRequested_)
Sets the action that was requested and is currently pending approval.
|
void |
setActionRequester(java.lang.String actionRequester_)
Sets the username of the user that requested the action currently
pending approval.
|
void |
setAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes_)
Sets the attribute map, which can be used to store arbitary properties on
content objects.
|
void |
setChangesRequireApproval(java.lang.Boolean changesRequireApproval_)
Sets whether changes require approval.
|
void |
setCreatedTimestamp(java.sql.Timestamp createdTimestamp_)
Sets the date and time the content was created.
|
void |
setCreator(java.lang.String creator_)
Sets the username of the user that created the content.
|
void |
setCurrentContentId(java.lang.Long id)
Sets the content ID of the current (aka latest) version of this content.
|
void |
setDepth(java.lang.Integer depth_)
Sets the depth.
|
void |
setDescription(java.lang.String description_)
Sets the description.
|
void |
setExpirationTimestamp(java.sql.Timestamp expirationTimestamp_)
Sets the date and time that the content will expire.
|
void |
setFavorite(java.lang.Boolean favorite_)
Sets whether this is a favorite.
|
void |
setForum(java.lang.Long forum_)
Deprecated.
The Discussion Forums functionality will be removed in a future release. Use the News feed
and related smart services to build applications with similar functionality.
|
void |
setLatestVersionId(java.lang.Integer latestVersionId_)
Sets the latest version ID of the Content.
|
void |
setLockedAt(java.sql.Timestamp lockedAt_)
This field cannot be updated in the database.
|
void |
setLockedBy(java.lang.String lockedBy_)
Deprecated.
use
#setLockedByUsername(String)) |
void |
setLockedByUsername(java.lang.String lockedByUsername)
Sets the username of the user that has locked the content.
|
void |
setLog(java.lang.Long log_)
Sets the log ID sent to the collaboration statistics server.
|
void |
setLogName(java.lang.String logName_)
Sets the name of the log kept by the collaboration statistics server.
|
void |
setNumberOfVersions(java.lang.Long numberOfVersions_)
Gets the number of versions of the content that currently exist, excluding the
current version.
|
void |
setOriginalContentId(java.lang.Long id)
Sets the content ID of the original version of this content.
|
void |
setParent(java.lang.Long parent_)
Sets the ID of the parent (the container that contains this content).
|
void |
setParentName(java.lang.String parentName_)
Sets the name of the parent (the container that contains this content).
|
void |
setParentType(java.lang.Integer parentType_)
Sets the type of the parent (the container that contains this content).
|
void |
setPartition(java.lang.Integer partition_)
Sets the ID of the partition.
|
void |
setPartitionName(java.lang.String partitionName_)
Sets the name of the partition.
|
void |
setPendingApprovalCount(java.lang.Integer pendingApprovalCount)
This value will be ignored in create/update.
|
void |
setRoleSet(ContentRoleSet roleSet_)
Sets the role set.
|
void |
setSecurity(int security_)
Sets the security.
|
void |
setSecurity(java.lang.Integer security_)
Sets the security, which indicates that the role map should be modified
in some way.
|
void |
setSize(java.lang.Integer size_)
Sets the size of the content object.
|
void |
setState(java.lang.Integer state_)
Sets the current state of the content.
|
void |
setSubtype(int subtype_)
Sets the subtype of the content.
|
void |
setSubtype(java.lang.Integer subtype_)
Sets the subtype of the content.
|
void |
setType(java.lang.Integer type_)
Gets the type of the content.
|
void |
setTypesOfChildren(java.lang.Integer typesOfChildren_)
Sets the typemask for the types of children that exist for this content (note:
this only applies to containers).
|
void |
setUpdatedTimestamp(java.sql.Timestamp updatedTimestamp_)
Sets the date and time that the content was last updated.
|
void |
setUsersPendingAccess(java.lang.String[] usersPendingAccess_)
Sets the list of usernames of users that are pending access (used for
non-public content).
|
void |
setUuid(java.lang.String uuid_)
Sets the UUID of the object.
|
void |
setVersionId(java.lang.Integer versionId_)
Sets the ID of the content version.
|
void |
setVersions(java.lang.Long[] versions_)
Deprecated.
this field cannot be updated in the database.
|
void |
setVisibility(int visibility_)
Sets the visibility.
|
void |
setVisibility(java.lang.Integer visibility_)
Sets the visibility, which indicates which parts of the application
can see the content.
|
java.lang.String |
toString()
Creates a string representation of the content (does not contain all fields).
|
boolean |
visibilityContains(int visibility_)
Check whether the current visibility contains the visibility passed in.
|
boolean |
visibilityContains(java.lang.Integer visibility_)
Check whether the current visibility contains the visibility passed in.
|
public Content()
ContentConstants.VIS_DEFAULT
. Sets security to none.protected Content(int type_)
Content
bean with the given type. Sets visibility
to ContentConstants.VIS_DEFAULT
. Sets security to none.type_
- the content typeContent(Integer)
protected Content(java.lang.Integer type_)
Content
bean with the given type.type_
- the content type@ConvertWith(value=com.appiancorp.kougar.mapper.parameters.UuidParameterConverter.class) public java.lang.String getUuid()
Identity
getUuid
in class Identity
Identity.setUuid(String)
public void setUuid(java.lang.String uuid_)
Identity
setUuid
in class Identity
uuid_
- UUID to setIdentity.getUuid()
public java.lang.Integer getPendingApprovalCount()
public void setPendingApprovalCount(java.lang.Integer pendingApprovalCount)
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Constant
or
FreeformRule
so that the class-specific handling is applied to the
retrieved value.setAttributes(Map)
public void setAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes_)
Constant
or
FreeformRule
so that the class-specific handling is applied to the
stored value.
This field can be updated in the database.attributes_
- the attribute mapgetAttributes()
public java.lang.Integer getSize()
Document
, the size is the size of the file
stored in bytes. This size counts against the user's quota.setSize(Integer)
public void setSize(java.lang.Integer size_)
Document
, the size is the size of the file
stored in bytes. This size counts against the user's quota.
This field can be updated in the database.size_
- the size of the contentgetSize()
public java.lang.Boolean getChangesRequireApproval()
Boolean.TRUE
if changes require approval,
Boolean.FALSE
otherwisesetChangesRequireApproval(Boolean)
public void setChangesRequireApproval(java.lang.Boolean changesRequireApproval_)
changesRequireApproval
- Boolean.TRUE
if changes require
approval, Boolean.FALSE
otherwisegetChangesRequireApproval()
public java.sql.Timestamp getCreatedTimestamp()
setCreatedTimestamp(Timestamp)
public void setCreatedTimestamp(java.sql.Timestamp createdTimestamp_)
createdTimestamp_
- the date and time the content was createdgetCreatedTimestamp()
public java.lang.String getCreator()
setCreator(String)
public void setCreator(java.lang.String creator_)
creator_
- the usernamegetCreator()
public java.lang.Integer getDepth()
ContentService.getContentTree(Long, Integer, Integer, Integer)
,
setDepth(Integer)
public void setDepth(java.lang.Integer depth_)
depth_
- the depthContentService.getContentTree(Long, Integer, Integer, Integer)
,
getDepth()
public java.lang.String getDescription()
setDescription(String)
public void setDescription(java.lang.String description_)
description_
- the descriptiongetDescription()
public java.sql.Timestamp getExpirationTimestamp()
null
, the content will never expire.setExpirationTimestamp(Timestamp)
public void setExpirationTimestamp(java.sql.Timestamp expirationTimestamp_)
null
, the content will never expire.
This field can be updated in the database.expirationTimestamp_
- the date and time that the content will expiregetExpirationTimestamp()
@Deprecated public java.lang.Long getForum()
null
if no such forum has yet been created. Use
DiscussionMetadataCoreService
and
DiscussionMetadataConvenienceService
to manipulate the forums.
When this is set to a forum ID, Forum.getRelateds()
should include
this content.setForum(Long)
@Deprecated public void setForum(java.lang.Long forum_)
DiscussionMetadataCoreService
and
DiscussionMetadataConvenienceService
to manipulate the forums.
When this is set to a forum ID, Forum.getRelateds()
should include
this content.
This field can be updated in the database. You must have admin privileges to
change this field if it has already been set to a forum (a non-zero value).forum_
- the ID of the forumgetForum()
@Deprecated public java.lang.String getLockedBy()
getLockedByUsername()
null
if the content is not locked.setLockedBy(String)
@Deprecated public void setLockedBy(java.lang.String lockedBy_)
#setLockedByUsername(String))
null
if the content is not locked.
This field cannot be updated in the database.
Set by ContentService.lock(Long[])
,
ContentService.unlock(Long[])
, and
ContentService.breakLock(Long[])
. If the content is not locked,
this is set to ANONYMOUS or blank.lockedBy_
- the usernamegetLockedBy()
public java.sql.Timestamp getLockedAt()
null
if the content is not locked.setLockedBy(String)
public void setLockedAt(java.sql.Timestamp lockedAt_)
lockedAt_
- the date and time that the content was locked.setLockedBy(String)
public java.lang.Long getLog()
setLog(Long)
public void setLog(java.lang.Long log_)
log_
- the log IDgetLog()
public java.lang.String getLogName()
setLogName(String)
public void setLogName(java.lang.String logName_)
logName_
- the name of the loggetLogName()
public java.lang.Long getParent()
setParent(Long)
public void setParent(java.lang.Long parent_)
parent_
- the ID of the parentgetParent()
public java.lang.String getParentName()
setParentName(String)
public void setParentName(java.lang.String parentName_)
parentName_
- the name of the parentgetParentName()
public java.lang.Integer getParentType()
setParentType(Integer)
public void setParentType(java.lang.Integer parentType_)
parentType_
- the type of the parentgetParentType()
public java.lang.Integer getActionRequested()
ContentConstants.ACT_DELETE
,
ContentConstants.ACT_DEACTIVATE
, or
ContentConstants.ACT_CREATE
. This is null
if
no action is pending approval.
This is only populated from ContentService.getRequests()
.setActionRequested(Integer)
public void setActionRequested(java.lang.Integer actionRequested_)
actionRequested_
- the action that was requestedgetActionRequested()
public java.lang.String getActionRequester()
null
if no action is pending
approval.
This is only populated from ContentService.getRequests()
.setActionRequester(String)
public void setActionRequester(java.lang.String actionRequester_)
actionRequester_
- the usernamegetActionRequester()
public java.lang.Integer getSecurity()
ContentConstants.SEC_INH_VIEWER | ContentConstants.SEC_PUBLIC
would indicate that the content should both inherit viewers and be considered
public.setSecurity(Integer)
,
securityContains(int)
public void setSecurity(java.lang.Integer security_)
ContentConstants.SEC_INH_VIEWER | ContentConstants.SEC_PUBLIC
would indicate that the content should both inherit viewers and be considered
public.
This field can be updated in the database. if visibility does not have ContentConstants.VIS_SYSTEM
setsecurity_
- the security modifiersgetSecurity()
,
addSecurity(int)
,
removeSecurity(int)
public void setSecurity(int security_)
setSecurity(Integer)
.security_
- the securitygetSecurity()
public void addSecurity(java.lang.Integer security_)
addSecurity(int)
.security_
- the security to addsetSecurity(Integer)
public void addSecurity(int security_)
security_
- the security to addsetSecurity(Integer)
public void removeSecurity(java.lang.Integer security_)
removeSecurity(int)
.security_
- the security to removegetSecurity()
,
setSecurity(Integer)
public void removeSecurity(int security_)
security_
- the security to removegetSecurity()
,
setSecurity(Integer)
public boolean securityContains(java.lang.Integer security_)
securityContains(int)
.security_
- the security to check forpublic boolean securityContains(int security_)
ContentConstants.SEC_INH_ADMIN
and
ContentConstants.SEC_PUBLIC
, and the security to check for is
ContentConstants.SEC_PUBLIC
and ContentConstants.SEC_CREATOR_ADMIN
,
this method returns true.security_
- the security to check forpublic java.lang.Integer getState()
ContentConstants
.STATE_XXX constants.setState(Integer)
public void setState(java.lang.Integer state_)
ContentService.updateFields(com.appiancorp.suiteapi.content.Content, java.lang.Integer[], java.lang.Integer)
API. All other
create/update APIs ignore the set value.state_
- the stategetState()
public java.lang.Integer getSubtype()
Folder
and Rule
objects.setSubtype(Integer)
public void setSubtype(java.lang.Integer subtype_)
Folder
and Rule
objects.
This field can be updated in the database.subtype_
- the subtypegetSubtype()
public void setSubtype(int subtype_)
setSubtype(Integer)
.subtype_
- the subtypegetSubtype()
public java.lang.Integer getType()
ContentConstants.TYPE_DOCUMENT
,
ContentConstants.TYPE_FOLDER
, ContentConstants.TYPE_PERSONAL_KC
,
ContentConstants.TYPE_COMMUNITY_KC
, ContentConstants.TYPE_COMMUNITY
,
ContentConstants.TYPE_RULE
, ContentConstants.TYPE_APPLICATION
, or
ContentConstants.TYPE_CUSTOM
.setType(Integer)
public void setType(java.lang.Integer type_)
ContentConstants.TYPE_DOCUMENT
,
ContentConstants.TYPE_FOLDER
, ContentConstants.TYPE_PERSONAL_KC
,
ContentConstants.TYPE_COMMUNITY_KC
, ContentConstants.TYPE_COMMUNITY
,
ContentConstants.TYPE_RULE
, ContentConstants.TYPE_APPLICATION
, or
ContentConstants.TYPE_CUSTOM
.
When you create one of the sub-classes of Content
, the type
is automatically set.
This field can be updated in the database.type_
- the typegetType()
public java.sql.Timestamp getUpdatedTimestamp()
setUpdatedTimestamp(Timestamp)
public void setUpdatedTimestamp(java.sql.Timestamp updatedTimestamp_)
updatedTimestamp_
- the date and time that the content was last updated.getUpdatedTimestamp()
public java.lang.String[] getUsersPendingAccess()
ContentService.getRequests()
.setUsersPendingAccess(String[])
public void setUsersPendingAccess(java.lang.String[] usersPendingAccess_)
usersPendingAccess_
- the array of usernamesgetUsersPendingAccess()
public java.lang.Integer getVersionId()
null
version ID.setVersionId(Integer)
public void setVersionId(java.lang.Integer versionId_)
versionId_
- the ID of the content versiongetVersionId()
public java.lang.Integer getLatestVersionId()
setLatestVersionId(Integer)
public void setLatestVersionId(java.lang.Integer latestVersionId_)
lastestVersionId_
- the latest version ID of the ContentgetLatestVersionId()
@Deprecated public java.lang.Long[] getVersions()
Content
beans for the versions can be obtained by calling
ContentService.getContentList(Long[], Integer)
. However, if there exists only 1
version of the document then the only entry that exists in the returned versions list is
-1L.setVersions(Long[])
,
ContentService#getAllVersionIds(Long)}
@Deprecated public void setVersions(java.lang.Long[] versions_)
ContentService.createVersion(Content[], Integer)
.versions_
- the version IDsgetVersions()
public java.lang.Long getOriginalContentId()
ID of the content
is returned.list of versions
is
returned.setOriginalContentId(Long)
public void setOriginalContentId(java.lang.Long id)
id
- getOriginalContentId()
public java.lang.Long getCurrentContentId()
ID of the content
is returned.list of versions
is
returned.setCurrentContentId(Long)
public void setCurrentContentId(java.lang.Long id)
id
- getCurrentContentId()
public java.lang.Integer getVisibility()
ContentConstants.VIS_HIERARCHY | ContentConstants.VIS_SEARCHABLE
would indicate that the content would appear in the hierarchy and would be
searchable.setVisibility(Integer)
,
visibilityContains(int)
public void setVisibility(java.lang.Integer visibility_)
ContentConstants.VIS_HIERARCHY | ContentConstants.VIS_SEARCHABLE
would indicate that the content would appear in the hierarchy and would be
searchable.
This field can be updated in the database.visibility_
- the visibility modifiersgetVisibility()
,
addVisibility(int)
,
removeVisibility(int)
public void setVisibility(int visibility_)
setVisibility(Integer)
.visibility_
- the visibilitygetVisibility()
public void addVisibility(java.lang.Integer visibility_)
addVisibility(int)
.visibility_
- the visibility to addpublic void addVisibility(int visibility_)
visibility_
- the visibility to addpublic void removeVisibility(java.lang.Integer visibility_)
removeVisibility(int)
.visibility_
- the visibility to removepublic void removeVisibility(int visibility_)
visibility_
- the visibility to removegetVisibility()
,
setVisibility(Integer)
public boolean visibilityContains(java.lang.Integer visibility_)
visibilityContains(int)
.visibility_
- the visibility to check forpublic boolean visibilityContains(int visibility_)
ContentConstants.VIS_HIERARCHY
and
ContentConstants.VIS_SEARCHABLE
, and the visibility to check for is
ContentConstants.VIS_SEARCHABLE
and ContentConstants.VIS_QUOTA
,
this method returns true.visibility_
- the visibility to check forpublic java.lang.Integer getPartition()
setPartition(Integer)
public void setPartition(java.lang.Integer partition_)
partition_
- the partition IDgetPartition()
public java.lang.String getPartitionName()
setPartitionName(String)
public void setPartitionName(java.lang.String partitionName_)
partitionName_
- the name of the partitiongetPartitionName()
public ContentRoleSet getRoleSet()
ContentService
. However, you can have
the content service populate this field by calling
ContentService.populateRoleSets(Content[])
.setRoleSet(ContentRoleSet)
public void setRoleSet(ContentRoleSet roleSet_)
roleSet_
- the role setgetRoleSet()
public java.lang.Integer getTypesOfChildren()
ContentService
. However, you can have
the content service populate this field by calling
ContentService.populateTypesOfChildren(Content[])
.setTypesOfChildren(Integer)
public void setTypesOfChildren(java.lang.Integer typesOfChildren_)
typesOfChildren_
- the typemask for the types of childrengetTypesOfChildren()
public java.lang.Boolean getFavorite()
ContentService
. However, you can have
the content service populate this field by calling
ContentService.populateFavorites(Content[])
.setFavorite(Boolean)
public void setFavorite(java.lang.Boolean favorite_)
favorite_
- whether this is a favoritegetFavorite()
public boolean hasChildrenOfType(int typeMask_)
ContentService.populateTypesOfChildren(Content[])
.typeMask_
- the type mask to checkpublic java.lang.String toString()
public java.lang.String getDisplayName()
Document
.public java.lang.Long getNumberOfVersions()
setNumberOfVersions(Long)
public void setNumberOfVersions(java.lang.Long numberOfVersions_)
ContentService.createVersion(Content[], Integer)
.numberOfVersions_
- the number of versionsgetNumberOfVersions()
public void fillInAppianTypes(AppianTypeCache cache_)
fillInAppianTypes
in interface AppianTypeHolder
cache_
- the cache that will hold the valuespublic java.lang.String getLockedByUsername()
public void setLockedByUsername(java.lang.String lockedByUsername)
ContentService.lock(Long[])
,
ContentService.unlock(Long[])
, and
ContentService.breakLock(Long[])
. If the content is not locked,
this is set to blank.lockedByUsername
- the usernameCopyright © 2003-2024 Appian Corporation. All Rights Reserved.