Class PermissionsMapper
java.lang.Object
com.levigo.jadice.web.client.messaging.mapper.PermissionsMapper
Maps permissions from and to DTOs.
This class is duplicated on server/client, because we have to both
a) use different DTO classes
b) use different Permission classes for mapping (auth.web vs auth)
-
Method Summary
Modifier and TypeMethodDescriptionfrom
(Permission<?> permission) static PermissionsMapper
get()
boolean
void
registerMapping
(Permission<?> permission, String name, Permission.Vote vote) void
setThrowExceptionOnMissingMapping
(boolean throwExceptionOnMissingMapping) Permission
<?> to
(PermissionsDTO dto)
-
Method Details
-
registerMapping
-
from
-
to
-
get
-
setThrowExceptionOnMissingMapping
public void setThrowExceptionOnMissingMapping(boolean throwExceptionOnMissingMapping) -
isThrowExceptionOnMissingMapping
public boolean isThrowExceptionOnMissingMapping()
-