| com.flexive.shared.structure.FxType com.flexive.shared.structure.FxTypeEdit
FxTypeEdit | public class FxTypeEdit extends FxType implements Serializable(Code) | | FxType used for structure editing
author: Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
Field Summary | |
protected boolean | changed |
Method Summary | |
public FxTypeEdit | addRelation(FxTypeRelation relation) | public static FxTypeEdit | createNew(String name) | public static FxTypeEdit | createNew(String name, FxString description, ACL acl) | public static FxTypeEdit | createNew(String name, FxString description, ACL acl, FxType parent) | public static FxTypeEdit | createNew(String name, FxString description, ACL acl, Workflow workflow, FxType parent, boolean enableParentAssignments, TypeStorageMode storageMode, TypeCategory category, TypeMode mode, boolean checkValidity, LanguageMode language, TypeState state, byte permissions, boolean trackHistory, long historyAge, long maxVersions, int maxRelSource, int maxRelDestination) Create a new FxTypeEdit instance for creating a new FxType
Parameters: name - name of the type Parameters: description - description Parameters: acl - type ACL Parameters: workflow - workflow to use Parameters: parent - parent type or null if not derived Parameters: enableParentAssignments - if parent is not null enable all derived assignments from the parent? Parameters: storageMode - the storage mode Parameters: category - category mode (system, user) Parameters: mode - type mode (content, relation) Parameters: checkValidity - check validity of contents in search operations Parameters: language - language mode Parameters: state - type state (active, locked, etc) Parameters: permissions - permissions bit coded Parameters: trackHistory - track history Parameters: historyAge - max. | public List<FxTypeRelation> | getAddedRelations() | public List<FxGroupAssignment> | getAssignedGroups() | public List<FxPropertyAssignment> | getAssignedProperties() | public List<FxTypeRelation> | getRemovedRelations() | public List<FxTypeRelation> | getUpdatedRelations() | public boolean | isChanged() | public boolean | isEnableParentAssignments() | public boolean | isNew() | public boolean | isRemoveInstancesWithRelationTypes() | public void | removeRelation(FxTypeRelation relation) | public FxTypeEdit | setACL(ACL ACL) | public FxTypeEdit | setCategory(TypeCategory category) | public FxTypeEdit | setCheckValidity(boolean checkValidity) | public FxTypeEdit | setDescription(FxString description) | public FxTypeEdit | setEnableParentAssignments(boolean enableParentAssignments) | public FxTypeEdit | setHistoryAge(long historyAge) Set the max. | public FxTypeEdit | setLanguage(LanguageMode language) | public FxTypeEdit | setMaxRelDestination(int maxRelDestination) Set the max. | public FxTypeEdit | setMaxRelSource(int maxRelSource) Set the max. | public FxTypeEdit | setMaxVersions(long maxVersions) Set the max. | public FxTypeEdit | setMode(TypeMode mode) Set this type's mode. | public FxTypeEdit | setName(String name) | public FxTypeEdit | setPermissions(byte permissions) | public void | setRemoveInstancesWithRelationTypes(boolean removeInstancesWithRelationTypes) | public FxTypeEdit | setState(TypeState state) | public FxTypeEdit | setTrackHistory(boolean trackHistory) | public FxTypeEdit | setUseInstancePermissions(boolean use) | public FxTypeEdit | setUsePropertyPermissions(boolean use) | public FxTypeEdit | setUseStepPermissions(boolean use) | public FxTypeEdit | setUseTypePermissions(boolean use) | public FxTypeEdit | setWorkflow(Workflow workflow) | public void | updateRelation(FxTypeRelation relation) |
changed | protected boolean changed(Code) | | |
FxTypeEdit | public FxTypeEdit(FxType type)(Code) | | Create a new FxTypeEdit instance for editing and updating an existing FxType
Parameters: type - the FxType to edit |
createNew | public static FxTypeEdit createNew(String name)(Code) | | Create a new FxTypeEdit instance for creating a new FxType
Parameters: name - name of the type FxTypeEdit instance for creating a new FxType |
createNew | public static FxTypeEdit createNew(String name, FxString description, ACL acl)(Code) | | Create a new FxTypeEdit instance for creating a new FxType
Parameters: name - name of the type Parameters: description - description Parameters: acl - type ACL FxTypeEdit instance for creating a new FxType |
createNew | public static FxTypeEdit createNew(String name, FxString description, ACL acl, FxType parent)(Code) | | Create a new FxTypeEdit instance for creating a new FxType
Parameters: name - name of the type Parameters: description - description Parameters: acl - type ACL Parameters: parent - parent type or null if not derived FxTypeEdit instance for creating a new FxType |
createNew | public static FxTypeEdit createNew(String name, FxString description, ACL acl, Workflow workflow, FxType parent, boolean enableParentAssignments, TypeStorageMode storageMode, TypeCategory category, TypeMode mode, boolean checkValidity, LanguageMode language, TypeState state, byte permissions, boolean trackHistory, long historyAge, long maxVersions, int maxRelSource, int maxRelDestination)(Code) | | Create a new FxTypeEdit instance for creating a new FxType
Parameters: name - name of the type Parameters: description - description Parameters: acl - type ACL Parameters: workflow - workflow to use Parameters: parent - parent type or null if not derived Parameters: enableParentAssignments - if parent is not null enable all derived assignments from the parent? Parameters: storageMode - the storage mode Parameters: category - category mode (system, user) Parameters: mode - type mode (content, relation) Parameters: checkValidity - check validity of contents in search operations Parameters: language - language mode Parameters: state - type state (active, locked, etc) Parameters: permissions - permissions bit coded Parameters: trackHistory - track history Parameters: historyAge - max. age of the history to track Parameters: maxVersions - max. number of versions to keep, if < 0 unlimited Parameters: maxRelSource - max. number of instance related as source Parameters: maxRelDestination - max. number of instance related as destination FxTypeEdit instance for creating a new FxType |
getAddedRelations | public List<FxTypeRelation> getAddedRelations()(Code) | | Get a list of all FxTypeRelations that have been added
list of all FxTypeRelations that have been added |
getRemovedRelations | public List<FxTypeRelation> getRemovedRelations()(Code) | | Get a list of all FxTypeRelations that have been removed
list of all FxTypeRelations that have been removed |
getUpdatedRelations | public List<FxTypeRelation> getUpdatedRelations()(Code) | | Get a list of all FxTypeRelations that have been updated
list of all FxTypeRelations that have been updated |
isChanged | public boolean isChanged()(Code) | | Have changes been made?
changes made |
isEnableParentAssignments | public boolean isEnableParentAssignments()(Code) | | Enable parent assignments if creating a derived type?
This method has no effect if editing an existing type!
are parent assignments enabled? |
isNew | public boolean isNew()(Code) | | Is this a new type or updating an existing type?
new or existing type? |
isRemoveInstancesWithRelationTypes | public boolean isRemoveInstancesWithRelationTypes()(Code) | | If FxTypeRelation entries are removed, remove all affected instances?
remove all affected instances if FxTypeRelation entries are removed? |
removeRelation | public void removeRelation(FxTypeRelation relation)(Code) | | Remove a relation
Parameters: relation - the relation to remove |
setACL | public FxTypeEdit setACL(ACL ACL)(Code) | | Assign a new ACL
Parameters: ACL - ACL to assign for this type the type itself, useful for chained calls |
setCategory | public FxTypeEdit setCategory(TypeCategory category)(Code) | | Set the types category (user, system)
Parameters: category - the category to set the type itself, useful for chained calls |
setCheckValidity | public FxTypeEdit setCheckValidity(boolean checkValidity)(Code) | | Check validity (valid from/to) in search operations?
Parameters: checkValidity - check validity the type itself, useful for chained calls |
setDescription | public FxTypeEdit setDescription(FxString description)(Code) | | Set the types description
Parameters: description - description the type itself, useful for chained calls |
setEnableParentAssignments | public FxTypeEdit setEnableParentAssignments(boolean enableParentAssignments)(Code) | | Enable parent assignments if creating a derived type?
This method has no effect if editing an existing type!
Parameters: enableParentAssignments - are parent assignments enabled? the type itself, useful for chained calls |
setHistoryAge | public FxTypeEdit setHistoryAge(long historyAge)(Code) | | Set the max. age of history entries
Parameters: historyAge - max. age of history entries the type itself, useful for chained calls |
setLanguage | public FxTypeEdit setLanguage(LanguageMode language)(Code) | | Set the language mode to use for this type
Parameters: language - language mode to use the type itself, useful for chained calls |
setMaxRelDestination | public FxTypeEdit setMaxRelDestination(int maxRelDestination)(Code) | | Set the max. number related destination instances for this type, if negative unlimited
Parameters: maxRelDestination - max. number related destination instances for this type, if negative unlimited the type itself, useful for chained calls |
setMaxRelSource | public FxTypeEdit setMaxRelSource(int maxRelSource)(Code) | | Set the max. number related source instances for this type, if negative unlimited
Parameters: maxRelSource - max. number related source instances for this type, if negative unlimited the type itself, useful for chained calls |
setMaxVersions | public FxTypeEdit setMaxVersions(long maxVersions)(Code) | | Set the max. number of versions to keep, if negative unlimited
Parameters: maxVersions - max. number of versions to keep, if negative unlimited the type itself, useful for chained calls |
setMode | public FxTypeEdit setMode(TypeMode mode)(Code) | | Set this type's mode.
Setting does not check anything, if the requested mode is really available and possible is determined during saving
Parameters: mode - requested mode this |
setName | public FxTypeEdit setName(String name)(Code) | | Set the name of this type
Parameters: name - the name of this type the type itself, useful for chained calls |
setPermissions | public FxTypeEdit setPermissions(byte permissions)(Code) | | Set the bit coded permissions of this type
Parameters: permissions - bit coded permissions the type itself, useful for chained calls |
setRemoveInstancesWithRelationTypes | public void setRemoveInstancesWithRelationTypes(boolean removeInstancesWithRelationTypes)(Code) | | Set if affected instances should be removed if FxTypeRelations are removed
Parameters: removeInstancesWithRelationTypes - if affected instances should be removed if FxTypeRelations are removed |
setState | public FxTypeEdit setState(TypeState state)(Code) | | Set the state of this type
Parameters: state - the state of this type the type itself, useful for chained calls |
setTrackHistory | public FxTypeEdit setTrackHistory(boolean trackHistory)(Code) | | Track history for this type
Parameters: trackHistory - track history? the type itself, useful for chained calls |
setUseInstancePermissions | public FxTypeEdit setUseInstancePermissions(boolean use)(Code) | | Set usage of instance permissions
Parameters: use - use instance permissions? the type itself, useful for chained calls |
setUsePropertyPermissions | public FxTypeEdit setUsePropertyPermissions(boolean use)(Code) | | Set usage of property permissions
Parameters: use - use property permissions? the type itself, useful for chained calls |
setUseStepPermissions | public FxTypeEdit setUseStepPermissions(boolean use)(Code) | | Set usage of step permissions
Parameters: use - use step permissions? the type itself, useful for chained calls |
setUseTypePermissions | public FxTypeEdit setUseTypePermissions(boolean use)(Code) | | Set usage of type permissions
Parameters: use - use type permissions? the type itself, useful for chained calls |
setWorkflow | public FxTypeEdit setWorkflow(Workflow workflow)(Code) | | Set the workflow to use
Parameters: workflow - the workflow to use the type itself, useful for chained calls |
|
|