|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectokapi.coreobjects.OkapiObject
okapi.coreobjects.OkapiGroup
public class OkapiGroup
Group/list object.
Field Summary | |
---|---|
static OkapiGroup |
anyUserGroup
|
static OkapiGroup |
authUserGroup
|
protected int |
update_rows_affected
Rows affected by updateDB. |
static OkapiGroup |
worldGroup
|
Fields inherited from class okapi.coreobjects.OkapiObject |
---|
createdBy, createdDate, description, lastModifiedBy, lastModifiedDate, longName, name, objectID, status |
Constructor Summary | |
---|---|
OkapiGroup()
Create a new empty Group. |
|
OkapiGroup(int groupCode)
Return the Group object for this groupCode |
Method Summary | |
---|---|
void |
addMember(OkapiGroup group)
Add a Group to this group. |
void |
addMember(OkapiUser user)
Add a User to this group. |
static int |
cacheCheck()
Method cacheCheck |
static int |
cacheNameCheck()
Method cacheNameCheck |
boolean |
checkAuthorization(OkapiUser user,
OkapiOperation operation)
Checks to see if the specified user is authorized to perform the specified operation on this object. |
int |
compareTo(java.lang.Object o)
implement Comparable interface |
int |
compareTo(OkapiGroup group)
Method compareTo |
boolean |
equals(java.lang.Object o)
override Object equals method to compare two groups |
java.lang.String |
getAsXml(java.util.Map options,
java.lang.String tag,
int indent)
Overrides the method in OkapiObject to add Group specific information. |
java.lang.String |
getDatasource()
Method getDatasource |
java.lang.String |
getDatasourceKey()
Method getDatasourceKey |
static OkapiGroup |
getGroup(int groupCode)
Get a group from the cache if cached, instantiate and add to cache if not. |
int |
getGroupCode()
Return groupCode of this group. |
java.util.Vector |
getMembers(boolean expand)
Return the list of users and groups in this group. |
OkapiRole |
getRole()
Return the role for this group. |
protected static java.util.List |
groupsForUser(OkapiUser user,
boolean recurse)
Return a List of all Groups the User is in, recursively if recurse is true. |
int |
hashCode()
override hashCode to use the database table sequence number |
void |
refreshFromDB()
Refresh this object with the data currently stored in the DB. |
void |
removeMember(OkapiGroup group)
Remove a member from this group. |
void |
removeMember(OkapiUser user)
Remove a member from this group. |
void |
setDataSource(javax.sql.DataSource dataSource)
Set the dataSource to be used for data access. |
void |
setDatasource(java.lang.String datasource)
Method setDatasource |
void |
setDatasourceKey(java.lang.String datasource_key)
Method setDatasourceKey |
void |
setDescription(java.lang.String newDescription)
Method setDescription |
protected void |
setLastModifiedBy(OkapiUser newLastModifiedBy)
|
protected void |
setLastModifiedBy(java.lang.String newLastModifiedBy)
|
protected void |
setLastModifiedDate(java.util.Date newLastModifiedDate)
|
void |
setLongName(java.lang.String newLongName)
Method setLongName |
void |
setName(java.lang.String newName)
overwrote OkapiObject's set methods to set db_action |
void |
setRole(OkapiRole role)
Set the Role to which all members of the group belong. |
void |
updateDB()
Update the database record for this object. |
static java.util.List |
userGroups(OkapiUser user,
boolean expand)
Return a List of all Groups the User is in, recursively if the boolean is set to true. |
Methods inherited from class okapi.coreobjects.OkapiObject |
---|
currentDateTimeOracle, getAsXml, getAsXml, getAsXml, getCreatedBy, getCreatedDate, getDescription, getLastModifiedBy, getLastModifiedDate, getLongName, getName, getObjectID, getStatus, isEncryptionRequired, setAuthorization, setCreatedBy, setCreatedDate, setStatus |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int update_rows_affected
public static OkapiGroup authUserGroup
public static OkapiGroup anyUserGroup
public static OkapiGroup worldGroup
Constructor Detail |
---|
public OkapiGroup()
public OkapiGroup(int groupCode)
Method Detail |
---|
public static int cacheCheck()
public static int cacheNameCheck()
public static OkapiGroup getGroup(int groupCode)
public int getGroupCode()
public void setName(java.lang.String newName)
setName
in class OkapiObject
public void setLongName(java.lang.String newLongName)
setLongName
in class OkapiObject
newLongName
- public void setDescription(java.lang.String newDescription)
setDescription
in class OkapiObject
newDescription
- protected void setLastModifiedDate(java.util.Date newLastModifiedDate)
setLastModifiedDate
in class OkapiObject
protected void setLastModifiedBy(OkapiUser newLastModifiedBy)
setLastModifiedBy
in class OkapiObject
protected void setLastModifiedBy(java.lang.String newLastModifiedBy)
setLastModifiedBy
in class OkapiObject
public void setRole(OkapiRole role)
public OkapiRole getRole()
public void setDatasource(java.lang.String datasource)
datasource
- public java.lang.String getDatasource()
public void setDatasourceKey(java.lang.String datasource_key)
datasource_key
- public java.lang.String getDatasourceKey()
public void addMember(OkapiUser user) throws java.lang.Exception
java.lang.Exception
public void addMember(OkapiGroup group) throws java.lang.Exception
java.lang.Exception
public void removeMember(OkapiUser user) throws java.lang.Exception
java.lang.Exception
public void removeMember(OkapiGroup group) throws java.lang.Exception
java.lang.Exception
public java.util.Vector getMembers(boolean expand) throws java.lang.Exception
java.lang.Exception
public static java.util.List userGroups(OkapiUser user, boolean expand) throws java.lang.Exception
java.lang.Exception
protected static java.util.List groupsForUser(OkapiUser user, boolean recurse)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public int compareTo(OkapiGroup group)
group
-
public void updateDB()
updateDB
in class OkapiObject
public void refreshFromDB()
refreshFromDB
in class OkapiObject
public boolean checkAuthorization(OkapiUser user, OkapiOperation operation)
checkAuthorization
in class OkapiObject
public java.lang.String getAsXml(java.util.Map options, java.lang.String tag, int indent)
getAsXml
in class OkapiObject
public void setDataSource(javax.sql.DataSource dataSource)
dataSource
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |