nl.gx.webmanager.authorization.impl
Class PermissionGroupImpl

java.lang.Object
  extended by nl.gx.webmanager.authorization.impl.HtmlObjectWrapperImpl
      extended by nl.gx.webmanager.authorization.impl.PermissionGroupImpl
All Implemented Interfaces:
HtmlObjectWrapper, PermissionGroup

public class PermissionGroupImpl
extends HtmlObjectWrapperImpl
implements PermissionGroup

Implementation of the PermissionGroup interface. This implementation wraps the rbac_permission_group siteworks objecttype.

Author:
Arjan Seijkens/Ivo Ladage

Field Summary
 
Fields inherited from class nl.gx.webmanager.authorization.impl.HtmlObjectWrapperImpl
id
 
Constructor Summary
PermissionGroupImpl()
          Default constructor for a PermissionGroup implementation instance.
PermissionGroupImpl(java.lang.String id)
          Constructor for a PermissionGroup implementation taking the id of the siteworks object it wraps as a parameter.
PermissionGroupImpl(java.lang.String id, int webid)
          Constructor for a permission group when it is used within a webinitiatif, this way it returns only licensed permissions for that webinitiatif.
 
Method Summary
 boolean checkAccess(java.lang.String permissionValue)
          Returns true if this permission group contains the given permission.
 boolean equals(java.lang.Object obj)
           
 java.lang.String getName()
          Return the language dependend name of this permission group.
 Permission[] getPermissions()
          Returns all permissions assigned to the permission group.
 java.lang.String getValue()
          Returns String representation of a value of a permission group.
 boolean isDevelopment()
          Returns true if the permission group applies for developers only.
 
Methods inherited from class nl.gx.webmanager.authorization.impl.HtmlObjectWrapperImpl
assignRelatedObject, delete, getAssignment, getAssignmentObjects, getAssignments, getId, getUuid, removeRelatedObjects, setAssignment, setAssignments, setComponent, setId, setNode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nl.gx.webmanager.authorization.HtmlObjectWrapper
getId, getUuid
 

Constructor Detail

PermissionGroupImpl

public PermissionGroupImpl()
Default constructor for a PermissionGroup implementation instance.


PermissionGroupImpl

public PermissionGroupImpl(java.lang.String id)
Constructor for a PermissionGroup implementation taking the id of the siteworks object it wraps as a parameter.

Parameters:
id - Id of a rbac_permission_group siteworks object

PermissionGroupImpl

public PermissionGroupImpl(java.lang.String id,
                           int webid)
Constructor for a permission group when it is used within a webinitiatif, this way it returns only licensed permissions for that webinitiatif.

Parameters:
id - Id of a rbac_permission_group siteworks object
webid - Id of a wm_webinitiatif siteworks object
Method Detail

getValue

public java.lang.String getValue()
Description copied from interface: PermissionGroup
Returns String representation of a value of a permission group.

Specified by:
getValue in interface PermissionGroup
Returns:
String representation of a value of a permission group

getPermissions

public Permission[] getPermissions()
Description copied from interface: PermissionGroup
Returns all permissions assigned to the permission group.

Specified by:
getPermissions in interface PermissionGroup
Returns:
all permissions assigned to the permission group

isDevelopment

public boolean isDevelopment()
Description copied from interface: PermissionGroup
Returns true if the permission group applies for developers only.

Specified by:
isDevelopment in interface PermissionGroup
Returns:
true if the permission group applies for developers only

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class HtmlObjectWrapperImpl

checkAccess

public boolean checkAccess(java.lang.String permissionValue)
Description copied from interface: PermissionGroup
Returns true if this permission group contains the given permission.

Specified by:
checkAccess in interface PermissionGroup
Parameters:
permissionValue - Value that uniquely identifies the permission to check
Returns:
true if this permission group contains the given permission

getName

public java.lang.String getName()
Description copied from interface: PermissionGroup
Return the language dependend name of this permission group.

Specified by:
getName in interface PermissionGroup
Returns:
Language dependend name of this permission group


Copyright © 2007-2011 GX Software BV. All Rights Reserved.