org.broadleafcommerce.openadmin.server.security.domain
Class AdminRoleImpl

java.lang.Object
  extended by org.broadleafcommerce.openadmin.server.security.domain.AdminRoleImpl
All Implemented Interfaces:
Serializable, AdminRole

@Entity
public class AdminRoleImpl
extends Object
implements AdminRole

Author:
jfischer
See Also:
Serialized Form

Field Summary
protected  Set<AdminPermission> allPermissions
           
protected  Set<AdminUser> allUsers
          All users that have this role
protected  String description
           
protected  Long id
           
protected  String name
           
 
Constructor Summary
AdminRoleImpl()
           
 
Method Summary
 void checkCloneable(AdminRole adminRole)
           
 AdminRole clone()
           
 Set<AdminPermission> getAllPermissions()
           
 Set<AdminUser> getAllUsers()
           
 String getDescription()
           
 Long getId()
           
 String getName()
           
 void setAllPermissions(Set<AdminPermission> allPermissions)
           
 void setDescription(String description)
           
 void setId(Long id)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected Long id

name

protected String name

description

protected String description

allUsers

protected Set<AdminUser> allUsers
All users that have this role


allPermissions

protected Set<AdminPermission> allPermissions
Constructor Detail

AdminRoleImpl

public AdminRoleImpl()
Method Detail

getAllPermissions

public Set<AdminPermission> getAllPermissions()
Specified by:
getAllPermissions in interface AdminRole

getId

public Long getId()
Specified by:
getId in interface AdminRole

setId

public void setId(Long id)
Specified by:
setId in interface AdminRole

getName

public String getName()
Specified by:
getName in interface AdminRole

getAllUsers

public Set<AdminUser> getAllUsers()

setName

public void setName(String name)
Specified by:
setName in interface AdminRole

getDescription

public String getDescription()
Specified by:
getDescription in interface AdminRole

setDescription

public void setDescription(String description)
Specified by:
setDescription in interface AdminRole

setAllPermissions

public void setAllPermissions(Set<AdminPermission> allPermissions)

checkCloneable

public void checkCloneable(AdminRole adminRole)
                    throws CloneNotSupportedException,
                           SecurityException,
                           NoSuchMethodException
Throws:
CloneNotSupportedException
SecurityException
NoSuchMethodException

clone

public AdminRole clone()
Specified by:
clone in interface AdminRole
Overrides:
clone in class Object


Copyright © 2013. All Rights Reserved.