Package se.conciliate.extensions.store
Interface MTPermissions
public interface MTPermissions
- Author:
- sebastian
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanequals(MTPermissions p1, MTPermissions p2) static MTPermissionsstatic MTPermissionsstatic MTPermissionsstatic MTPermissionsstatic MTPermissionsdefault intgetValue()booleanReturns true if everybody can read.booleanReturns true if everybody can read.booleanReturns true if users in the group can read.booleanReturns true if users in the group can write.booleanReturns true if the owner can read.booleanReturns true if the owner can write.default Stringdefault voidsetAllRead(boolean value) default voidsetAllWrite(boolean value) default voidsetGroupRead(boolean value) Sets if users in the group can read.default voidsetGroupWrite(boolean value) Sets if users in the group can write.default voidsetOwnerRead(boolean value) Sets if the owner can read.default voidsetOwnerWrite(boolean value) Sets if the owner can write.
-
Method Details
-
equals
-
getDefault
-
getPrivate
-
getGroupWrite
-
getGroupPrivate
-
getNoAccessControl
-
isOwnerRead
boolean isOwnerRead()Returns true if the owner can read.- Returns:
- true if owner can read.
-
isOwnerWrite
boolean isOwnerWrite()Returns true if the owner can write.- Returns:
- true if owner can write.
-
isGroupRead
boolean isGroupRead()Returns true if users in the group can read.- Returns:
- true if users in the group can read.
-
isGroupWrite
boolean isGroupWrite()Returns true if users in the group can write.- Returns:
- true if users in the group can write.
-
isAllRead
boolean isAllRead()Returns true if everybody can read.- Returns:
- true if everybody can read.
-
isAllWrite
boolean isAllWrite()Returns true if everybody can read.- Returns:
- true if everybody can read.
-
setOwnerRead
default void setOwnerRead(boolean value) Sets if the owner can read.- Parameters:
value- if the owner can read.
-
setOwnerWrite
default void setOwnerWrite(boolean value) Sets if the owner can write.- Parameters:
value- if the owner can write.
-
setGroupRead
default void setGroupRead(boolean value) Sets if users in the group can read.- Parameters:
value- if users in the group can read.
-
setGroupWrite
default void setGroupWrite(boolean value) Sets if users in the group can write.- Parameters:
value- if users in the group can write.
-
setAllRead
default void setAllRead(boolean value) -
setAllWrite
default void setAllWrite(boolean value) -
permissionString
-
getValue
default int getValue()
-