Package com.ads.api.beans.rsm
Class Permission
java.lang.Object
com.ads.api.beans.rsm.Permission
This class provides some beans control methods related to Permission, name, its Description, displayOrder etc...
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns list of child permission objects of the permission.Returns the permission description in Chinese language.Returns the description of the permission.floatReturns displayOrder of the permission.Returns the permission description in English language.Returns the permission description in French language.Returns the permission description in German language.Returns the permission description in Hebrew language.getId()Returns the permission id.getName()Returns the name of the permission.Returns the parentId of the permission.Returns parentPermission object of the permission.Returns the permission description in Portuguese language.Returns the permission description in Russian language.Returns the permission description in Spanish language.booleanReturns true if the permission is enabled and false if permission is disabled.booleanReturns true/false if the permission has sensitive permission.voidsetChildPermissions(List<Permission> childPermissions) Method sets list of child permission objects to the Permission object as specified.voidsetChineseDescription(String chineseDescription) Method sets the description to the Permission object as specified in Chinese language.voidsetDescription(String description) Method sets the description to the Permission object as specified.voidsetDisplayOrder(float displayOrder) Method sets the displayOrder to the Permission object as specified.voidsetEnabled(boolean enabled) Method sets the value as true/false to enable or disable the permission.voidsetEnglishDescription(String englishDescription) Method sets the description to the Permission object as specified in English language.voidsetFrenchDescription(String frenchDescription) Method sets the description to the Permission object as specified in French language.voidsetGermanDescription(String germanDescription) Method sets the description to the Permission object as specified in German language.voidsetHebrewDescription(String hebrewDescription) Method sets the description to the Permission object as specified in Hebrew language.voidMethod sets the id to the Permission object as specified.voidMethod sets the permission name to the Permission object as specified.voidsetParentId(String parentId) Method sets the parentId to the Permission object as specified.voidsetParentPermission(Permission parentPermission) Method sets parentPermission object to the Permission object as specified.voidsetPortugueseDescription(String portugueseDescription) Method sets the description to the Permission object as specified in Portuguese language.voidsetRussiaDescription(String russiaDescription) Method sets the description to the Permission object as specified in Russian language.voidsetSensitive(boolean sensitive) Method sets sensitive permission to the Permission object as specified.voidsetSpanishDescription(String spanishDescription) Method sets the description to the Permission object as specified in Spanish language.
-
Constructor Details
-
Permission
public Permission()
-
-
Method Details
-
getId
Returns the permission id.- Returns:
- id String
-
setId
Method sets the id to the Permission object as specified.- Parameters:
id- String
-
getParentId
Returns the parentId of the permission.- Returns:
- parentId String
-
setParentId
Method sets the parentId to the Permission object as specified.- Parameters:
parentId- String
-
getDescription
Returns the description of the permission.- Returns:
- description String
-
setDescription
Method sets the description to the Permission object as specified.- Parameters:
description- String
-
getEnglishDescription
Returns the permission description in English language.- Returns:
- englishDescription String
-
setEnglishDescription
Method sets the description to the Permission object as specified in English language.- Parameters:
englishDescription- String
-
getChineseDescription
Returns the permission description in Chinese language.- Returns:
- chineseDescription String
-
setChineseDescription
Method sets the description to the Permission object as specified in Chinese language.- Parameters:
chineseDescription- String
-
getFrenchDescription
Returns the permission description in French language.- Returns:
- frenchDescription String
-
setFrenchDescription
Method sets the description to the Permission object as specified in French language.- Parameters:
frenchDescription- String
-
getGermanDescription
Returns the permission description in German language.- Returns:
- germanDescription String
-
setGermanDescription
Method sets the description to the Permission object as specified in German language.- Parameters:
germanDescription- String
-
getHebrewDescription
Returns the permission description in Hebrew language.- Returns:
- hebrewDescription String
-
setHebrewDescription
Method sets the description to the Permission object as specified in Hebrew language.- Parameters:
hebrewDescription- String
-
getPortugueseDescription
Returns the permission description in Portuguese language.- Returns:
- portugueseDescription String
-
setPortugueseDescription
Method sets the description to the Permission object as specified in Portuguese language.- Parameters:
portugueseDescription- String
-
getRussiaDescription
Returns the permission description in Russian language.- Returns:
- russiaDescription String
-
setRussiaDescription
Method sets the description to the Permission object as specified in Russian language.- Parameters:
russiaDescription- String
-
getSpanishDescription
Returns the permission description in Spanish language.- Returns:
- spanishDescription String
-
setSpanishDescription
Method sets the description to the Permission object as specified in Spanish language.- Parameters:
spanishDescription- String
-
getName
Returns the name of the permission.- Returns:
- name String
-
setName
Method sets the permission name to the Permission object as specified.- Parameters:
name- String
-
isEnabled
public boolean isEnabled()Returns true if the permission is enabled and false if permission is disabled.- Returns:
- enabled boolean
-
setEnabled
public void setEnabled(boolean enabled) Method sets the value as true/false to enable or disable the permission.- Parameters:
enabled- boolean
-
getDisplayOrder
public float getDisplayOrder()Returns displayOrder of the permission.- Returns:
- displayOrder float
-
setDisplayOrder
public void setDisplayOrder(float displayOrder) Method sets the displayOrder to the Permission object as specified.- Parameters:
displayOrder- float
-
getParentPermission
Returns parentPermission object of the permission.- Returns:
- parentPermission Permission
-
setParentPermission
Method sets parentPermission object to the Permission object as specified.- Parameters:
parentPermission- Permission
-
getChildPermissions
Returns list of child permission objects of the permission.- Returns:
- childPermissions List
-
setChildPermissions
Method sets list of child permission objects to the Permission object as specified.- Parameters:
childPermissions- List
-
isSensitive
public boolean isSensitive()Returns true/false if the permission has sensitive permission.- Returns:
- sensitive boolean
-
setSensitive
public void setSensitive(boolean sensitive) Method sets sensitive permission to the Permission object as specified.- Parameters:
sensitive-
-