| java.lang.Object com.flexive.ejb.beans.structure.AssignmentEngineBean
AssignmentEngineBean | public class AssignmentEngineBean implements AssignmentEngine,AssignmentEngineLocal(Code) | | Structure Assignment management
TODO's:
-property/group removal
-check if modification/creation even possible in case instances exist
-implement all known changeable flags
author: Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
Method Summary | |
public long | createGroup(FxGroupEdit group, String parentXPath) | public long | createGroup(long typeId, FxGroupEdit group, String parentXPath) | public long | createProperty(FxPropertyEdit property, String parentXPath) | public long | createProperty(long typeId, FxPropertyEdit property, String parentXPath) | public long | createProperty(long typeId, FxPropertyEdit property, String parentXPath, String assignmentAlias) | public long | getAssignmentInstanceCount(long assignmentId) | public long | getPropertyInstanceCount(long propertyId) | public void | removeAssignment(long assignmentId, boolean removeSubAssignments, boolean removeDerivedAssignments) | public void | removeGroup(long groupId) | protected static void | removeOrphanedGroups(Connection con) | protected static void | removeOrphanedProperties(Connection con) | public void | removeProperty(long propertyId) | public long | save(FxAssignment assignment, boolean createSubAssignments) | public long | save(FxPropertyEdit property) | public long | save(FxGroupEdit group) |
ctx | javax.ejb.SessionContext ctx(Code) | | |
getPropertyInstanceCount | public long getPropertyInstanceCount(long propertyId) throws FxDbException(Code) | | |
removeAssignment | public void removeAssignment(long assignmentId, boolean removeSubAssignments, boolean removeDerivedAssignments) throws FxApplicationException(Code) | | |
removeGroup | public void removeGroup(long groupId) throws FxApplicationException(Code) | | Removes a group and all subgroups and properties assigned to it as well as all references in content instances
Parameters: groupId - id of the group to remove throws: FxApplicationException - on errors |
removeOrphanedGroups | protected static void removeOrphanedGroups(Connection con) throws SQLException(Code) | | Remove all groups that are no longer referenced
Parameters: con - a valid connection throws: SQLException - on errors |
removeOrphanedProperties | protected static void removeOrphanedProperties(Connection con) throws SQLException(Code) | | Remove all properties that are no longer referenced
Parameters: con - a valid connection throws: SQLException - on errors |
removeProperty | public void removeProperty(long propertyId) throws FxApplicationException(Code) | | Remove a property, all its assignments and all attributes in contents referencing this property
Parameters: propertyId - id of the property to remove throws: FxApplicationException - on errors |
|
|