|
OBEROn SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.oberon.ooql.sdk.OBBase
com.oberon.ooql.sdk.AdminComponent
com.oberon.ooql.sdk.Column
public class Column
View - Column: represents a user View column.
| Field Summary | |
|---|---|
static int |
COLUMNACCESS_Length
|
static int |
COLUMNACCESS_MODIFIABLE
Modifiable access condition |
static int |
COLUMNACCESS_SEEABLE
Seeable access condition |
static int |
EDITABLE_OPTION
The Editable flag index inside the Option Set |
static int |
HIDDEN_OPTION
The Hidden flag index inside the Option Set |
| Fields inherited from class com.oberon.ooql.sdk.AdminComponent |
|---|
bsOptions |
| Constructor Summary | |
|---|---|
Column()
|
|
Column(java.lang.String name)
|
|
| Method Summary | |
|---|---|
static java.lang.String |
accessToString(java.util.BitSet accessFlags,
java.lang.String delim)
Convert the access flags to the OOQL format |
void |
addAccessProgram(Trigger program)
Add a trigger to compute the Column access |
void |
compareUpdate(Column refColumn,
boolean checkImage,
Framework framework)
Return/apply the OOQL command to update this Column object and let it become equals to another reference object. |
boolean |
equals(Column column)
Compare two Columns |
void |
fromXML(org.jdom.Element rootElement)
Load the Column properties from XML element tree |
static java.lang.String |
getAccessAsString(int accessType)
Convert the access type to the OOQL format |
static java.lang.String |
getAccessEvent(int accessType)
Convert the access type to the OOQL access trigger format (seeable / modifiable ...) |
static int |
getAccessId(java.lang.String access)
Convert the access type from the OOQL format to the internal id |
Trigger |
getAccessProgramByEvent(java.lang.String event)
Get trigger to compute a specific access for this Column |
java.util.Vector<Trigger> |
getAccessPrograms()
Get triggers to compute the Column access |
java.lang.String |
getAccessProgramsAsString(java.lang.String delim)
Get triggers to compute the Column access as String |
ActorAccess |
getActorAccess(java.lang.String actorType,
java.lang.String actorName)
Get the Column accesses for the given actor |
boolean |
getActorAccess(java.lang.String actorType,
java.lang.String actorName,
int accessType)
Get the actor access to this Column for a specific operation |
java.util.Vector<ActorAccess> |
getActorAccesses()
Get the all actor accesses for this Column |
java.util.Vector<java.lang.String> |
getActors()
Get all actors enabled for this Column |
java.util.Vector<java.lang.String> |
getActors(java.lang.String actorType)
Get all actors enabled for this Column filtered by type |
java.lang.String |
getApplication()
Get the application Menu name. |
java.lang.String |
getChangeCommand()
Return the OOQL command to update this Column with the modified properties. |
java.util.BitSet |
getCommunityAccess()
Get the Column accesses for the community |
boolean |
getCommunityAccess(int accessType)
Get the community access to this Column for a specific operation |
java.lang.String |
getCreateCommand(boolean force)
[Inherited but not used] |
java.lang.String |
getCreateCommand(java.lang.String operator,
java.lang.String columnName)
Return the OOQL command to add this Column with the settled properties to a View |
java.lang.String |
getFormat()
Get the Output/Input format |
java.lang.String |
getGetLink()
Get the OOQL Link selector for the Column content. |
java.lang.String |
getGetObject()
Get the OOQL ObjectObj selector for the Column content. |
java.lang.String |
getLabel()
Get the Column label |
Selector |
getLinkSelector()
Get the Link Selector for the Column content. |
Selector |
getObjectSelector()
Get the ObjectObj Selector for the Column content. |
java.lang.String |
getProperty(java.lang.String propertyName,
java.util.Vector<java.lang.Object> filterArgs,
java.lang.String token,
Framework framework)
Get a property for this Column item by its OOQL identifier |
java.lang.String |
getSaveCommand(boolean force)
[Inherited but not used] |
java.util.Vector<?> |
getTargetNames(java.lang.String composedName,
java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
Return a Vector of administrative object names extracted by using an OOQL selector |
View |
getView()
Get the related View |
double |
getWidth()
Get the Column width |
org.jdom.Element |
getXMLAssignmentList(java.lang.String actor)
Return the Column Assignment access as XML element tree |
org.jdom.Element |
getXMLCommunity()
Return the Column community access as XML element tree |
org.jdom.Element |
getXMLTeamList(java.lang.String actor)
Return the Column Team access as XML element tree |
org.jdom.Element |
getXMLUserList(java.lang.String actor)
Return the Column User access as XML element tree |
boolean |
hasAccess(int accessType,
java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
Check if the framework user has access to this Column |
boolean |
hasAccess(int accessType,
java.util.Vector<java.lang.Object> filterArgs,
Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
Check if the framework user has access to this Column |
boolean |
isEditable()
Deprecated. |
boolean |
isHidden()
Return if the Column is or not hidden |
boolean |
isImageChanged()
Check if the column image is changed |
void |
removeAccessProgram(Trigger program)
Remove a Column access trigger |
void |
removeActorAccess(java.lang.String actorType,
java.lang.String actorName)
Revoke the Column access to a specific actor |
void |
setAccessPrograms(java.util.Vector<Trigger> programs)
Set triggers to compute the Column access |
void |
setActorAccess(java.lang.String actorType,
java.lang.String actorName,
java.util.BitSet accessFlags)
Set the Column accesses for a specific actor |
void |
setActorAccess(java.lang.String actorType,
java.lang.String actorName,
int accessType,
boolean accessFlag)
Set the Column access for a specific actor |
void |
setAllActorAccess(java.lang.String actorType,
java.lang.String actorName)
Give the full Column access to a specific actor |
void |
setAllCommunityAccess()
Give the full Column access to the community |
void |
setCommunityAccess(java.util.BitSet accessFlags)
Set the Column accesses for the community |
void |
setCommunityAccess(int accessType,
boolean accessFlag)
Set the Column access for the community |
void |
setFormat(java.lang.String format)
Set the Output/Input format. |
void |
setGetLink(java.lang.String ooqlSelector)
Set an OOQL Link selector for the Column content. |
void |
setGetObject(java.lang.String ooqlSelector)
Set an OOQL ObjectObj Selector for the Column content. |
void |
setHidden(boolean hidden)
Set the Hidden flag |
void |
setLabel(java.lang.String label)
Set the Column label. |
void |
setLinkSelector(Selector selector)
Set a Link Selector for the Column content. |
void |
setNoCommunityAccess()
Revoke the Column access to the community |
void |
setObjectSelector(Selector selector)
Set an ObjectObj Selector for the Column content. |
void |
setView(View view)
Link the Column with the related View |
void |
setWidth(double width)
Set the Column width. |
java.lang.String |
toString()
Return the Column properties as a single String |
org.jdom.Element |
toXML(boolean getImage,
boolean fullDump,
Framework framework)
Return the Column properties as XML element tree |
org.jdom.Element |
toXML(Framework framework)
Return the Column properties as XML element tree |
void |
updateAccessPrograms(java.util.Vector<Trigger> programs)
Update the access programs on the basis of a given list |
void |
updateActorAccess(java.util.Vector<ActorAccess> accesses)
Update the execute access on the basis of a given list |
| Methods inherited from class com.oberon.ooql.sdk.AdminComponent |
|---|
checkChangeName, getAdminType, getCommonProperty, getCommonTargetNames, getCrtDate, getDescription, getEditBasicCommand, getImage, getImageData, getImageFile, getModDate, getModUser, getName, getOldName, hasImage, setCrtDate, setDescription, setImage, setImageData, setImageFile, setModDate, setModUser, setName, toCommonXML, toXML |
| Methods inherited from class com.oberon.ooql.sdk.OBBase |
|---|
addChange, addUniqueChange, ChangesFromXML, ChangesToXML, getChanges, getChangesAsString, getId, isLinked, removeChange, resetChanges, setId, setLinked |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int HIDDEN_OPTION
public static final int EDITABLE_OPTION
public static final int COLUMNACCESS_SEEABLE
public static final int COLUMNACCESS_MODIFIABLE
public static final int COLUMNACCESS_Length
| Constructor Detail |
|---|
public Column()
public Column(java.lang.String name)
throws OberonException
name - the name of the administrative object
OberonException - if the name contains invalid characters| Method Detail |
|---|
public boolean isImageChanged()
public void setView(View view)
View
public View getView()
View
public java.lang.String getApplication()
Menu name.
public void setLabel(java.lang.String label)
label - the label valuepublic java.lang.String getLabel()
@Deprecated public boolean isEditable()
public void setHidden(boolean hidden)
hidden - the hidden flagFramework.setFilterHidden(boolean)public boolean isHidden()
public void setWidth(double width)
width - the Column widthpublic double getWidth()
public void setFormat(java.lang.String format)
throws OberonException
OberonExceptionpublic java.lang.String getFormat()
public void setObjectSelector(Selector selector)
ObjectObj Selector for the Column content.
This selector can be applied both on ObjectObj queries and navigations
Reset the Link selector.
selector - Link selection parameterspublic void setGetObject(java.lang.String ooqlSelector)
ObjectObj Selector for the Column content.
This selector can be applied both on ObjectObj queries and navigations
Reset the Link selector.
ooqlSelector - ObjectObj selector in OOQL format (example: description , field['FieldName'],... )public Selector getObjectSelector()
ObjectObj Selectorpublic java.lang.String getGetObject()
ObjectObj selector in OOQL formatpublic void setLinkSelector(Selector selector)
ObjectObj navigations
Reset the ObjectObj selector.
selector - Link selection parameterspublic void setGetLink(java.lang.String ooqlSelector)
Link selector for the Column content.
This selector can be applied only for ObjectObj navigations
Reset the ObjectObj selector.
ooqlSelector - Link selector in OOQL format (example: to.name , field['FieldName'],... )public Selector getLinkSelector()
Link Selectorpublic java.lang.String getGetLink()
Link selector in OOQL format
public void setCommunityAccess(int accessType,
boolean accessFlag)
accessType - the access type ( COLUMNACCESS_SEEABLE / COLUMNACCESS_MODIFIABLE )accessFlag - true to enable / false to disable the accesspublic void setAllCommunityAccess()
public void setNoCommunityAccess()
public void setCommunityAccess(java.util.BitSet accessFlags)
public boolean getCommunityAccess(int accessType)
accessType - the access type ( COLUMNACCESS_SEEABLE / COLUMNACCESS_MODIFIABLE )public java.util.BitSet getCommunityAccess()
public static int getAccessId(java.lang.String access)
public static java.lang.String getAccessAsString(int accessType)
public static java.lang.String getAccessEvent(int accessType)
public static java.lang.String accessToString(java.util.BitSet accessFlags,
java.lang.String delim)
delim - the access separator string
public void setActorAccess(java.lang.String actorType,
java.lang.String actorName,
java.util.BitSet accessFlags)
actorType - the actor type: can be ActorAccess.USER , ActorAccess.TEAM , ActorAccess.ASSIGNMENTactorName - the actor name
public void setActorAccess(java.lang.String actorType,
java.lang.String actorName,
int accessType,
boolean accessFlag)
actorType - the actor type: can be ActorAccess.USER , ActorAccess.TEAM , ActorAccess.ASSIGNMENTactorName - the actor nameaccessType - the access typeaccessFlag - true to enable / false to disable the access
public void setAllActorAccess(java.lang.String actorType,
java.lang.String actorName)
actorType - the actor type: can be ActorAccess.USER , ActorAccess.TEAM , ActorAccess.ASSIGNMENTactorName - the actor name
public void removeActorAccess(java.lang.String actorType,
java.lang.String actorName)
actorType - the actor type: can be ActorAccess.USER , ActorAccess.TEAM , ActorAccess.ASSIGNMENTactorName - the actor namepublic void updateActorAccess(java.util.Vector<ActorAccess> accesses)
accesses - list of ActorAccesses
public boolean getActorAccess(java.lang.String actorType,
java.lang.String actorName,
int accessType)
actorType - the actor type: can be ActorAccess.USER , ActorAccess.TEAM , ActorAccess.ASSIGNMENTactorName - the actor nameaccessType - the access type ( COLUMNACCESS_SEEABLE / COLUMNACCESS_MODIFIABLE )
public ActorAccess getActorAccess(java.lang.String actorType,
java.lang.String actorName)
actorType - the actor type: can be ActorAccess.USER , ActorAccess.TEAM , ActorAccess.ASSIGNMENTactorName - the actor namepublic java.util.Vector<java.lang.String> getActors(java.lang.String actorType)
actorType - the actor type: can be ActorAccess.USER , ActorAccess.TEAM , ActorAccess.ASSIGNMENT or emptypublic java.util.Vector<java.lang.String> getActors()
public java.util.Vector<ActorAccess> getActorAccesses()
ActorAccessespublic void setAccessPrograms(java.util.Vector<Trigger> programs)
programs - Vector of Programs ( or access Triggers )
public void addAccessProgram(Trigger program)
throws OberonException
program - the access Trigger
OberonExceptionpublic void removeAccessProgram(Trigger program)
addAccessProgram(Trigger)
public void updateAccessPrograms(java.util.Vector<Trigger> programs)
throws OberonException
programs - list of Triggers
OberonExceptionpublic java.util.Vector<Trigger> getAccessPrograms()
Triggerspublic java.lang.String getAccessProgramsAsString(java.lang.String delim)
delim - the trigger data separatorpublic Trigger getAccessProgramByEvent(java.lang.String event)
event - is the OOQL event type ( seeable / modifiable )
public boolean hasAccess(int accessType,
java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
accessType - the access type ( COLUMNACCESS_SEEABLE / COLUMNACCESS_MODIFIABLE )filterArgs - extra arguments used to compute the Column access
public boolean hasAccess(int accessType,
java.util.Vector<java.lang.Object> filterArgs,
Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
accessType - the access type ( COLUMNACCESS_SEEABLE / COLUMNACCESS_MODIFIABLE )filterArgs - extra arguments used to compute the Column accesscounters - administrative object synch counters (if null read them from database)
public java.lang.String getProperty(java.lang.String propertyName,
java.util.Vector<java.lang.Object> filterArgs,
java.lang.String token,
Framework framework)
getProperty in class OBBasepropertyName - OOQL property identifier/name (example: editable , label ...)filterArgs - extra arguments used to compute propertiestoken - separator token for complex propertiesframework - the current framework
public java.util.Vector<?> getTargetNames(java.lang.String composedName,
java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
getTargetNames in class OBBasecomposedName - OOQL property identifier/namefilterArgs - extra arguments used to compute propertiesframework - the current framework
public boolean equals(Column column)
public java.lang.String toString()
toString in class java.lang.Objectpublic org.jdom.Element getXMLCommunity()
public org.jdom.Element getXMLUserList(java.lang.String actor)
User access as XML element tree
public org.jdom.Element getXMLTeamList(java.lang.String actor)
Team access as XML element tree
public org.jdom.Element getXMLAssignmentList(java.lang.String actor)
Assignment access as XML element tree
public org.jdom.Element toXML(Framework framework)
framework - the current framework
public org.jdom.Element toXML(boolean getImage,
boolean fullDump,
Framework framework)
fullDump - true to include detailed informationframework - the current frameworkpublic void fromXML(org.jdom.Element rootElement)
fromXML in class AdminComponentpublic java.lang.String getCreateCommand(boolean force)
public java.lang.String getSaveCommand(boolean force)
public java.lang.String getCreateCommand(java.lang.String operator,
java.lang.String columnName)
View
operator - OOQL syntax position (example: "append" , "addbefore" ....)columnName - the name of the reference Columnpublic java.lang.String getChangeCommand()
public void compareUpdate(Column refColumn,
boolean checkImage,
Framework framework)
throws OberonException
refColumn - the reference Column objectframework - the current framework
OberonExceptionfromXML(Element)
|
OBEROn SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||