Package org.hcjf.service.security
Class Grants.Grant
- java.lang.Object
-
- org.hcjf.service.security.Grants.Grant
-
- All Implemented Interfaces:
BsonParcelable
- Enclosing class:
- Grants
public static final class Grants.Grant extends java.lang.Object implements BsonParcelable
System grant representation.- Author:
- javaito
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hcjf.utils.bson.BsonParcelable
BsonParcelable.Builder
-
-
Field Summary
-
Fields inherited from interface org.hcjf.utils.bson.BsonParcelable
MAP_KEYS_FIELD_NAME, MAP_VALUES_FIELD_NAME, PARCELABLE_CLASS_NAME
-
-
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)Verify if the instance if equals to other grant instance.java.lang.StringgetDescription()Returns the description of the grant.java.lang.StringgetGrantName()Returns the grant name.java.lang.StringgetPermissionId()Returns the id of the grant.java.util.List<java.lang.String>getTags()Returns the lost of tags of the grant.java.lang.StringgetTargetClassName()Returns the target class name.java.lang.StringtoString()Returns the string representation of the grant instance.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hcjf.utils.bson.BsonParcelable
fromBson, fromBson, fromBson, populate, toBson, toBson, toBson, toBson, typeFromBson
-
-
-
-
Method Detail
-
getPermissionId
public java.lang.String getPermissionId()
Returns the id of the grant.- Returns:
- Id of the grant.
-
getTargetClassName
public java.lang.String getTargetClassName()
Returns the target class name.- Returns:
- Target class name.
-
getGrantName
public java.lang.String getGrantName()
Returns the grant name.- Returns:
- Grant name.
-
getDescription
public java.lang.String getDescription()
Returns the description of the grant.- Returns:
- Grant description.
-
getTags
public java.util.List<java.lang.String> getTags()
Returns the lost of tags of the grant.- Returns:
- List of tags.
-
toString
public java.lang.String toString()
Returns the string representation of the grant instance.- Overrides:
toStringin classjava.lang.Object- Returns:
- String representation of the grant instance.
-
equals
public boolean equals(java.lang.Object obj)
Verify if the instance if equals to other grant instance.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- Objet to compare.- Returns:
- If the object to compare is instance of the grant call the super implementation of the method, but if the object to compare is instance of string then compare the object with the id of the grant.
-
-