com.dotmarketing.business
Class PermissionSummary

java.lang.Object
  extended by com.dotmarketing.business.PermissionSummary
All Implemented Interfaces:
java.io.Serializable

public class PermissionSummary
extends java.lang.Object
implements java.io.Serializable

Bean used to store information about a permission for displaying it on a page

Author:
davidtorresv
See Also:
Serialized Form

Constructor Summary
PermissionSummary()
           
PermissionSummary(java.lang.String label, java.lang.String description, int permissionBit)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDescription()
          Returns the description i18n key to be used to present the permission description
 java.lang.String getLabel()
          Returns the label i18n key to be used to present the permission name
 int getPermission()
          Returns the permission bit (I.E 1 = View permission)
 void setDescription(java.lang.String description)
          Sets the description i18n key
 void setLabel(java.lang.String label)
          Set the label i18nable key
 void setPermission(int permissionBit)
          Sets the permission bit
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionSummary

public PermissionSummary()

PermissionSummary

public PermissionSummary(java.lang.String label,
                         java.lang.String description,
                         int permissionBit)
Method Detail

getLabel

public java.lang.String getLabel()
Returns the label i18n key to be used to present the permission name

Returns:

setLabel

public void setLabel(java.lang.String label)
Set the label i18nable key

Parameters:
label -

getDescription

public java.lang.String getDescription()
Returns the description i18n key to be used to present the permission description

Returns:

setDescription

public void setDescription(java.lang.String description)
Sets the description i18n key

Parameters:
description -

getPermission

public int getPermission()
Returns the permission bit (I.E 1 = View permission)

Returns:

setPermission

public void setPermission(int permissionBit)
Sets the permission bit

Parameters:
permission -

equals

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


Copyright © 2013 dotCMS Inc. All Rights Reserved.