Package org.cyclos.impl.utils
Interface IdMask
-
- All Superinterfaces:
CustomBean
- All Known Implementing Classes:
AbstractIdMask,IdMaskCipher,NoOpIdMask
public interface IdMask extends CustomBean
Interface for an id mask. The mask is applied whenever an entity identifier (by heuristic, any data of type Long or long) is sent to a client (converting from entities to VO's, DTO's) and removed when sending back (converting from VO's, DTO's to entities). Also, service method arguments of type Long have the mask removed, while method results of type Long have the mask applied automatically.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longapply(long id)Applies the mask for the given identifierLongapply(Long id)Applies the mask for the given object identifierLongapply(Object object)Applies the mask for the given object if it is a Long.longremove(long id)Removes the mask from the given identifierLongremove(Long id)Removes the mask from the given object identifierLongremove(Object object)Removes the mask from the given object if it is a Long.
-