Package se.conciliate.extensions.store
Interface MTPermissions
public interface MTPermissions
- Author:
- sebastian
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
equals
(MTPermissions p1, MTPermissions p2) static MTPermissions
static MTPermissions
static MTPermissions
static MTPermissions
static MTPermissions
default int
getValue()
boolean
Returns true if everybody can read.boolean
Returns true if everybody can read.boolean
Returns true if users in the group can read.boolean
Returns true if users in the group can write.boolean
Returns true if the owner can read.boolean
Returns true if the owner can write.default String
default void
setAllRead
(boolean value) default void
setAllWrite
(boolean value) default void
setGroupRead
(boolean value) Sets if users in the group can read.default void
setGroupWrite
(boolean value) Sets if users in the group can write.default void
setOwnerRead
(boolean value) Sets if the owner can read.default void
setOwnerWrite
(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()
-