public static class ProcessModel.Descriptor extends LocalizedIdentity
Modifier and Type | Field and Description |
---|---|
static int |
SORT_BY_DESCRIPTION
Sort constant indicating that a grid of
ProcessModel s is sorted based on the
description field. |
static int |
SORT_BY_NAME
Sort constant indicating that a grid of
ProcessModel s is sorted based on the
name field. |
static java.lang.Integer |
SORT_PM_CREATORUSERNAME |
static java.lang.Integer |
SORT_PM_DESCRIPTION |
static java.lang.Integer |
SORT_PM_FOLDERID |
static java.lang.Integer |
SORT_PM_ID |
static java.lang.Integer |
SORT_PM_LOCKEDBY |
static java.lang.Integer |
SORT_PM_NAME |
static java.lang.Integer |
SORT_PM_TIMESTAMPCREATED |
static java.lang.Integer |
SORT_PM_TIMESTAMPUPDATED |
static java.lang.Integer |
SORT_PM_UUID |
static java.lang.Integer |
SORT_PM_VALIDATED |
static java.lang.Integer |
SORT_PM_VERSION |
static java.lang.Integer |
SORT_PM_VERSIONSTATUS |
Constructor and Description |
---|
Descriptor() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCreatorUsername()
Gets the use that created this model.
|
java.lang.Long |
getDashboardId() |
LocaleString |
getDescription()
Gets the localized description of this model.
|
boolean |
getFavorite() |
java.lang.Long |
getFolderId()
Gets the folder in which this model is saved.
|
java.lang.String |
getLastModifiedUsername() |
java.lang.String |
getLockedBy()
Gets the user by whom this model is currently locked.
|
boolean |
getMutablePriority()
Determines whether the priority of this model can be chagned.
|
java.lang.String |
getNameEscapeJavascript()
Retrieve the model name, escaped into its Javascript String form (eg a tab becomes the
characters '\\' and 't').
|
int |
getObjectType()
Gets the object type, for use by UI components.
|
ProcessModelPermissions |
getPermissions()
Gets the set of permissions that the logged-in user has on this model.
|
Priority |
getPriority()
Gets the priority of this model.
|
static int |
getSortProperty(java.lang.String attribute_)
Gets the sort property id that corresponds to the given attribute.
|
java.sql.Timestamp |
getTimeStampCreated()
Gets the time at which this model was created.
|
java.lang.String |
getTimeStampCreatedPretty()
Gets a pretty version of the time at which this model was created, useful for displaying.
|
java.sql.Timestamp |
getTimeStampUpdated()
Gets the time at which this model was last updated.
|
java.lang.String |
getTimeStampUpdatedPretty()
Gets a pretty version of the time at which this model was last updated, useful for
displaying.
|
java.lang.String |
getUuid()
Gets the universally unique identifier (uuid) for this model.
|
java.lang.String |
getVersion()
Gets the version of this model.
|
int |
getVersionStatus()
Gets the version status of this model.
|
boolean |
isEnabled()
Determines whether or not this model is enabled.
|
boolean |
isValidated()
Determines whether this model is validated.
|
void |
setCreatorUsername(java.lang.String creatorUsername_)
Sets the use that created this model.
|
void |
setDashboardId(java.lang.Long dashboardId_) |
void |
setDescription(LocaleString description_)
Sets the localized description of the process model.
|
void |
setEnabled(boolean enabled_)
Sets whether or not this model is enabled.
|
void |
setFavorite(boolean favorite_) |
void |
setFolderId(java.lang.Long folderId_)
Sets the folder in which this model is saved.
|
void |
setLastModifiedUsername(java.lang.String lastModifiedUsername) |
void |
setLockedBy(java.lang.String lockedBy_)
Sets the user by whom this model is currently locked.
|
void |
setMutablePriority(boolean mutablePriority_)
Sets whether or not the priority of processes of this process model can be changed
|
void |
setObjectType(int objectType_)
Sets the object type for this model, which should always be
AppianType.PROCESS_MODEL . |
void |
setPermissions(ProcessModelPermissions permissions_)
Sets the set of permissions that the logged-in user has on this model.
|
void |
setPriority(Priority priority_)
Sets the priority of this model.
|
void |
setTimeStampCreated(java.sql.Timestamp timeStampCreated_)
Sets the time at which this model was created.
|
void |
setTimeStampUpdated(java.sql.Timestamp timeStampUpdated_)
Sets the time at which this model was last updated.
|
void |
setUuid(java.lang.String uuid_)
Sets the universally unique identifier (uuid) for this model.
|
void |
setValidated(boolean validated_)
Sets whether this model is validated.
|
void |
setVersion(java.lang.String version_)
Gets the version of this model.
|
void |
setVersionStatus(int versionStatus_)
Sets the version status of this model.
|
java.lang.String |
toString()
Returns a string representation of the
LocalizedIdentity . |
public static final int SORT_BY_NAME
ProcessModel
s is sorted based on the
name field.public static final int SORT_BY_DESCRIPTION
ProcessModel
s is sorted based on the
description field.public static final java.lang.Integer SORT_PM_ID
public static final java.lang.Integer SORT_PM_NAME
public static final java.lang.Integer SORT_PM_DESCRIPTION
public static final java.lang.Integer SORT_PM_VALIDATED
public static final java.lang.Integer SORT_PM_LOCKEDBY
public static final java.lang.Integer SORT_PM_VERSIONSTATUS
public static final java.lang.Integer SORT_PM_VERSION
public static final java.lang.Integer SORT_PM_CREATORUSERNAME
public static final java.lang.Integer SORT_PM_TIMESTAMPCREATED
public static final java.lang.Integer SORT_PM_TIMESTAMPUPDATED
public static final java.lang.Integer SORT_PM_FOLDERID
public static final java.lang.Integer SORT_PM_UUID
public java.lang.String getNameEscapeJavascript()
@ConvertWith(value=com.appiancorp.kougar.mapper.parameters.UuidParameterConverter.class) public java.lang.String getUuid()
public void setUuid(java.lang.String uuid_)
uuid_
- the uuid for this model, as a String
.public java.lang.String getTimeStampCreatedPretty()
public java.lang.String getTimeStampUpdatedPretty()
public boolean isEnabled()
true
if this model is enabled, false
otherwise.public void setEnabled(boolean enabled_)
enabled_
- true
if this model is enabled, false
otherwise.public ProcessModelPermissions getPermissions()
public void setPermissions(ProcessModelPermissions permissions_)
permissions_
- the permissions that the logged-in user has on this model.public java.lang.Long getFolderId()
public void setFolderId(java.lang.Long folderId_)
folderId_
- the id of the folder in which this model is saved.public boolean isValidated()
true
if this model is validated, false
otherwise.public void setValidated(boolean validated_)
validated_
- true
if this model is validated, false
otherwise.public java.lang.String getLockedBy()
null
if this
model is unlocked.public void setLockedBy(java.lang.String lockedBy_)
lockedBy_
- the username of the user by whom this model is locked, or null
if this model is unlocked.public java.lang.String getVersion()
public void setVersion(java.lang.String version_)
version_
- the version of the process model, as a String holding a dot-separated number
(such as 1.3.0).public java.sql.Timestamp getTimeStampCreated()
public void setTimeStampCreated(java.sql.Timestamp timeStampCreated_)
timeStampCreated_
- the time the process model was created.public java.sql.Timestamp getTimeStampUpdated()
public void setTimeStampUpdated(java.sql.Timestamp timeStampUpdated_)
timeStampUpdated_
- the time the process model was last updated.public java.lang.String getCreatorUsername()
public void setCreatorUsername(java.lang.String creatorUsername_)
creatorUsername_
- the username of the user that created this model.public int getVersionStatus()
STATUS_XXX
constants.public void setVersionStatus(int versionStatus_)
versionStatus_
- the status of this version, as one of the STATUS_XXX
constants.public LocaleString getDescription()
public void setDescription(LocaleString description_)
description_
- a description of this model.public static int getSortProperty(java.lang.String attribute_)
attribute_
- the name of a property of the model descriptorSORT_XXX
constants.public int getObjectType()
AppianType.PROCESS_MODEL
.TypedVariable.PROCESS_MODEL
.public void setObjectType(int objectType_)
AppianType.PROCESS_MODEL
.objectType_
- the object type for this model, which should always be
TypedVariable.PROCESS_MODEL
.public java.lang.Long getDashboardId()
public void setDashboardId(java.lang.Long dashboardId_)
public boolean getFavorite()
public void setFavorite(boolean favorite_)
public java.lang.String toString()
LocalizedIdentity
LocalizedIdentity
. In general,
the toString method returns a string that "textually represents" this
object. Note that the name value will be the encode representation.toString
in class LocalizedIdentity
public java.lang.String getLastModifiedUsername()
public void setLastModifiedUsername(java.lang.String lastModifiedUsername)
public Priority getPriority()
public void setPriority(Priority priority_)
priority_
- the priority of this model.public boolean getMutablePriority()
true
if the priority can be change, false
if it
cannot be changed.public void setMutablePriority(boolean mutablePriority_)
mutablePriority_
- true
if the priority of processes of this model can be
changed, false
if the priority cannot be changed.Copyright © 2003-2024 Appian Corporation. All Rights Reserved.