|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.gx.webmanager.authorization.impl.HtmlObjectWrapperImpl
public class HtmlObjectWrapperImpl
Class extended by all classes in the authorization service that wrap a siteworks objecttype.
| Field Summary | |
|---|---|
protected int |
id
|
| Constructor Summary | |
|---|---|
HtmlObjectWrapperImpl()
Default constructor for a HtmlObjectWrapperImpl instance. |
|
HtmlObjectWrapperImpl(int id)
Constructor for a HtmlObjectWrapperImpl taking the id of the siteworks object it wraps as a parameter. |
|
HtmlObjectWrapperImpl(java.lang.String id)
Constructor for a HtmlObjectWrapperImpl taking the id of the siteworks object it wraps as a parameter. |
|
| Method Summary | |
|---|---|
protected void |
assignRelatedObject(java.lang.String relatedDeclarationName,
java.lang.String relatedObjectType,
nl.gx.siteworks.core.HtmlObject objectToCheck)
When assigning an object that is referenced from the object it is assigned to also assign refering object. |
void |
delete()
Delete the wrapped siteworks object. |
boolean |
equals(java.lang.Object obj)
|
protected java.lang.String |
getAssignment(java.lang.String declarationName)
Returns a String value assigned to the given declaration of the object wrapped by the current class instance. |
protected java.util.List<nl.gx.siteworks.core.HtmlObject> |
getAssignmentObjects(java.lang.String declaratioName)
Returns a list of siteworks objects assigned to a given declaration of the wrapped object. |
protected nl.gx.siteworks.core.HtmlObject[] |
getAssignments(java.lang.String declarationName)
Returns an array of siteworks objects assigned to the given declaration of the object wrapped by the current class instance. |
java.lang.String |
getId()
Returns the unique id of the wrapped Siteworks object. |
java.lang.String |
getUuid()
Return String representation of the wrapped Siteworks object's UUID. |
protected void |
removeRelatedObjects(java.lang.String relatedDeclarationName,
java.lang.String relatedObjectType,
java.util.List<java.lang.String> objectUUIDs,
java.util.List<nl.gx.siteworks.core.HtmlObject> objectsToCheck)
Removes all related objects when an object is removed that also refers to the object it is removed from. |
protected void |
setAssignment(java.lang.String objectTypeName,
java.lang.String declarationName,
java.lang.String value)
Sets a String value for a declaration of an object of a given objecttype. |
protected void |
setAssignments(java.lang.String objectTypeName,
java.lang.String declarationName,
java.lang.String[] values)
Sets an array of siteworks objects for a declaration of an object of a given objecttype. |
void |
setComponent(Component component)
Setter for the Component injected by the Spring MVC Controller framework in the getInstanceForName method on the ComponentBase class. |
void |
setId(java.lang.String id)
Sets a string representation of the wrapped siteworks object's id. |
void |
setNode(javax.jcr.Node node)
Public setter for use by the WebManager Spring protocol. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int id
| Constructor Detail |
|---|
public HtmlObjectWrapperImpl()
public HtmlObjectWrapperImpl(java.lang.String id)
id - Id of a siteworks objectpublic HtmlObjectWrapperImpl(int id)
id - Id of a siteworks object| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void setComponent(Component component)
component - Injected component
protected void setAssignments(java.lang.String objectTypeName,
java.lang.String declarationName,
java.lang.String[] values)
objectTypeName - Name of the objecttype of the objectdeclarationName - Name of the declaration to assign the values tovalues - An array of Strings representing UUID'sprotected nl.gx.siteworks.core.HtmlObject[] getAssignments(java.lang.String declarationName)
declarationName - Name of the declaration to return that objects of
public java.lang.String getId()
HtmlObjectWrapper
getId in interface HtmlObjectWrapperpublic void setId(java.lang.String id)
id - A string representation of the wrapped siteworks object's id
protected void setAssignment(java.lang.String objectTypeName,
java.lang.String declarationName,
java.lang.String value)
objectTypeName - Name of the objecttype of the objectdeclarationName - Name of the declaration to assign the values tovalue - A String valueprotected java.lang.String getAssignment(java.lang.String declarationName)
declarationName - Name of the declaration to return that value of
public void setNode(javax.jcr.Node node)
node - Node that is inserted
protected void removeRelatedObjects(java.lang.String relatedDeclarationName,
java.lang.String relatedObjectType,
java.util.List<java.lang.String> objectUUIDs,
java.util.List<nl.gx.siteworks.core.HtmlObject> objectsToCheck)
relatedDeclarationName - Name of the declaration that is related to the removed object
relationrelatedObjectType - Name of the objecttype containing the removed object relationobjectUUIDs - List of UUID's representing objectsobjectsToCheck - Objects that should be check if the refer to the object
which's relation is removedprotected java.util.List<nl.gx.siteworks.core.HtmlObject> getAssignmentObjects(java.lang.String declaratioName)
declaratioName - Name of the declaration
protected void assignRelatedObject(java.lang.String relatedDeclarationName,
java.lang.String relatedObjectType,
nl.gx.siteworks.core.HtmlObject objectToCheck)
relatedDeclarationName - Name of the declaration that is related to the removed object
relationrelatedObjectType - Name of the objecttype containing the removed object relationobjectToCheck - Object that should be checked if it refer's to the object
which's relation is addedpublic void delete()
public java.lang.String getUuid()
HtmlObjectWrapper
getUuid in interface HtmlObjectWrapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||