org.equanda.test.dm.client
Class EquandaRole

java.lang.Object
  extended by org.equanda.persistence.EquandaProxy<Uoid,EquandaRole>
      extended by org.equanda.test.dm.client.EquandaRole
All Implemented Interfaces:
Serializable, HasId<Uoid>

public class EquandaRole
extends EquandaProxy<Uoid,EquandaRole>
implements Serializable

Proxy object for table EquandaRole No constraints are being checked when modifying this object, this only happens when setting the value! Grouping many rights

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.equanda.persistence.EquandaProxy
equandaModificationDate, equandaStatusModified, equandaType, equandaVersion, id, update
 
Constructor Summary
  EquandaRole()
          Creator which is used to build value objects based on the real object.
protected EquandaRole(EquandaEquandaRoleState proxy)
           
protected EquandaRole(Uoid uoid, ObjectType equandaType, Timestamp equandaCreationDate, Timestamp equandaModificationDate, String equandaStatus, long equandaVersion, String roleName, String description, boolean guiAdministrator, boolean guiAccessProhibited, String appserverRole, String authAndConfig)
           
 
Method Summary
 EquandaRole equandaClone(boolean cloneUoid)
           
static EquandaRole equandaCreate()
           
static EquandaRole equandaCreate(String type)
           
 void equandaReset()
          Reset the proxy state.
 void equandaUpdate(boolean updateTypeFieldsOnly)
           
 String getAppserverRole()
          Name of role as defined in the application server itself.
 String getAuthAndConfig()
          Authorization and configuration details for this user.
 String getDescription()
           
 Timestamp getEquandaCreationDate()
           
 String getEquandaStatus()
           
 boolean getGuiAccessProhibited()
          When set the user is not allowed to login to the gui.
 boolean getGuiAdministrator()
          Should this user have the right to edit users, assign access rights etc?
 String getRoleName()
           
 boolean isAppserverRoleModified()
          Name of role as defined in the application server itself.
 boolean isAuthAndConfigModified()
          Authorization and configuration details for this user.
 boolean isDescriptionModified()
           
 boolean isGuiAccessProhibited()
          When set the user is not allowed to login to the gui.
 boolean isGuiAccessProhibitedModified()
          When set the user is not allowed to login to the gui.
 boolean isGuiAdministrator()
          Should this user have the right to edit users, assign access rights etc?
 boolean isGuiAdministratorModified()
          Should this user have the right to edit users, assign access rights etc?
 boolean isModified(boolean typeFieldsOnly)
           
 boolean isRoleNameModified()
           
 void mergeRestrictions(String param0, String param1)
          Mix the current role and the role with name given by parameter mergeName into a new role (resultName) For each identifier, the most restrictive value from the two roles is copied.
 void mergeRights(String param0, String param1)
          Mix the current role and the role with name given by parameter mergeName into a new role (resultName) For each identifier, the less restrictive value from the two roles is copied.
 void removeEntityBean()
           
static List<EquandaRole> selectAllRoles()
           
static List<EquandaRole> selectEquandaAll()
           
static List<EquandaRole> selectEquandaDescriptionPart(String descr)
           
static List<EquandaRole> selectEquandaDescriptionStart(String descr)
           
static EquandaRole selectId(Uoid uoid)
           
static EquandaRole selectRole(String roleName)
           
 void setAppserverRole(String value)
          Name of role as defined in the application server itself.
 void setAuthAndConfig(String value)
          Authorization and configuration details for this user.
 void setDescription(String value)
           
 void setEquandaStatus(String status)
           
 void setEquandaType(String type)
          Set the type of object which should be used.
 void setGuiAccessProhibited(boolean value)
          When set the user is not allowed to login to the gui.
 void setGuiAdministrator(boolean value)
          Should this user have the right to edit users, assign access rights etc?
protected  void setId(Uoid uoid)
           
 void setRoleName(String value)
           
protected  void updateInternalState()
           
 
Methods inherited from class org.equanda.persistence.EquandaProxy
equals, equandaClone, equandaUpdate, getEquandaModificationDate, getEquandaName, getEquandaType, getEquandaVersion, getId, hashCode, isEquandaModificationDateModified, isEquandaType, isModified, objectEquals, setEquandaUpdate, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EquandaRole

protected EquandaRole(EquandaEquandaRoleState proxy)

EquandaRole

public EquandaRole()
Creator which is used to build value objects based on the real object. Should only be used server side, client side proxies should be obtained using equandaCreate()


EquandaRole

protected EquandaRole(Uoid uoid,
                      ObjectType equandaType,
                      Timestamp equandaCreationDate,
                      Timestamp equandaModificationDate,
                      String equandaStatus,
                      long equandaVersion,
                      String roleName,
                      String description,
                      boolean guiAdministrator,
                      boolean guiAccessProhibited,
                      String appserverRole,
                      String authAndConfig)
Method Detail

equandaClone

public EquandaRole equandaClone(boolean cloneUoid)
Specified by:
equandaClone in class EquandaProxy<Uoid,EquandaRole>

setId

protected void setId(Uoid uoid)

updateInternalState

protected void updateInternalState()

equandaCreate

public static EquandaRole equandaCreate()
                                 throws EquandaPersistenceException
Throws:
EquandaPersistenceException

equandaCreate

public static EquandaRole equandaCreate(String type)
                                 throws EquandaPersistenceException
Throws:
EquandaPersistenceException

setEquandaType

public void setEquandaType(String type)
Set the type of object which should be used. This is a helper routine to allow using isEquandaType() for checking of object type. This method is only allowed for object building (not for objects which already exists on the server. When an invalid type identifier is specified, then later calls to read the type will throw IllegalStateException.

Specified by:
setEquandaType in class EquandaProxy<Uoid,EquandaRole>
Parameters:
type - base type which will be used to build the actual object
Throws:
IllegalStateException

isModified

public boolean isModified(boolean typeFieldsOnly)
Specified by:
isModified in class EquandaProxy<Uoid,EquandaRole>

getEquandaStatus

public String getEquandaStatus()
Specified by:
getEquandaStatus in class EquandaProxy<Uoid,EquandaRole>

setEquandaStatus

public void setEquandaStatus(String status)
Specified by:
setEquandaStatus in class EquandaProxy<Uoid,EquandaRole>

getEquandaCreationDate

public Timestamp getEquandaCreationDate()

getRoleName

public String getRoleName()
                   throws EquandaPersistenceException
Throws:
EquandaPersistenceException

setRoleName

public void setRoleName(String value)

isRoleNameModified

public boolean isRoleNameModified()

getDescription

public String getDescription()
                      throws EquandaPersistenceException
Throws:
EquandaPersistenceException

setDescription

public void setDescription(String value)

isDescriptionModified

public boolean isDescriptionModified()

getGuiAdministrator

public boolean getGuiAdministrator()
                            throws EquandaPersistenceException
Should this user have the right to edit users, assign access rights etc?

Throws:
EquandaPersistenceException

isGuiAdministrator

public boolean isGuiAdministrator()
Should this user have the right to edit users, assign access rights etc?


setGuiAdministrator

public void setGuiAdministrator(boolean value)
Should this user have the right to edit users, assign access rights etc?


isGuiAdministratorModified

public boolean isGuiAdministratorModified()
Should this user have the right to edit users, assign access rights etc?


getGuiAccessProhibited

public boolean getGuiAccessProhibited()
                               throws EquandaPersistenceException
When set the user is not allowed to login to the gui.

Throws:
EquandaPersistenceException

isGuiAccessProhibited

public boolean isGuiAccessProhibited()
When set the user is not allowed to login to the gui.


setGuiAccessProhibited

public void setGuiAccessProhibited(boolean value)
When set the user is not allowed to login to the gui.


isGuiAccessProhibitedModified

public boolean isGuiAccessProhibitedModified()
When set the user is not allowed to login to the gui.


getAppserverRole

public String getAppserverRole()
                        throws EquandaPersistenceException
Name of role as defined in the application server itself.

Throws:
EquandaPersistenceException

setAppserverRole

public void setAppserverRole(String value)
Name of role as defined in the application server itself.


isAppserverRoleModified

public boolean isAppserverRoleModified()
Name of role as defined in the application server itself.


getAuthAndConfig

public String getAuthAndConfig()
                        throws EquandaPersistenceException
Authorization and configuration details for this user.

Throws:
EquandaPersistenceException

setAuthAndConfig

public void setAuthAndConfig(String value)
Authorization and configuration details for this user.


isAuthAndConfigModified

public boolean isAuthAndConfigModified()
Authorization and configuration details for this user.


mergeRestrictions

public void mergeRestrictions(String param0,
                              String param1)
                       throws EquandaPersistenceException
Mix the current role and the role with name given by parameter mergeName into a new role (resultName) For each identifier, the most restrictive value from the two roles is copied.

Throws:
EquandaPersistenceException

mergeRights

public void mergeRights(String param0,
                        String param1)
                 throws EquandaPersistenceException
Mix the current role and the role with name given by parameter mergeName into a new role (resultName) For each identifier, the less restrictive value from the two roles is copied.

Throws:
EquandaPersistenceException

equandaUpdate

public void equandaUpdate(boolean updateTypeFieldsOnly)
                   throws EquandaPersistenceException
Specified by:
equandaUpdate in class EquandaProxy<Uoid,EquandaRole>
Throws:
EquandaPersistenceException

equandaReset

public void equandaReset()
                  throws EquandaPersistenceException
Reset the proxy state. If the proxy was not modified, nothing happens, otherwise the state is retrieved from the server again.

Specified by:
equandaReset in class EquandaProxy<Uoid,EquandaRole>
Throws:
EquandaPersistenceException - oops

removeEntityBean

public void removeEntityBean()
                      throws EquandaPersistenceException
Overrides:
removeEntityBean in class EquandaProxy<Uoid,EquandaRole>
Throws:
EquandaPersistenceException

selectId

public static EquandaRole selectId(Uoid uoid)
                            throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectRole

public static EquandaRole selectRole(String roleName)
                              throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectAllRoles

public static List<EquandaRole> selectAllRoles()
                                        throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectEquandaAll

public static List<EquandaRole> selectEquandaAll()
                                          throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectEquandaDescriptionStart

public static List<EquandaRole> selectEquandaDescriptionStart(String descr)
                                                       throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectEquandaDescriptionPart

public static List<EquandaRole> selectEquandaDescriptionPart(String descr)
                                                      throws EquandaPersistenceException
Throws:
EquandaPersistenceException


Copyright © 2007-2008. All Rights Reserved.