Class RoleMapping


  • public class RoleMapping
    extends java.lang.Object
    Mapping from an organization or a user or a group to a role.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object source
      The source of the mapping.
      private Role target
      The target role of the mapping.
    • Constructor Summary

      Constructors 
      Constructor Description
      RoleMapping()
      Default constructor.
      RoleMapping​(java.lang.Object source, Role target)
      Constructor.
    • Field Detail

      • source

        private volatile java.lang.Object source
        The source of the mapping. It must be an instance of one of these classes: User or Group.
      • target

        private volatile Role target
        The target role of the mapping.
    • Constructor Detail

      • RoleMapping

        public RoleMapping()
        Default constructor.
      • RoleMapping

        public RoleMapping​(java.lang.Object source,
                           Role target)
        Constructor.
        Parameters:
        source -
        target -
    • Method Detail

      • getSource

        public java.lang.Object getSource()
      • getTarget

        public Role getTarget()
      • setSource

        public void setSource​(java.lang.Object source)
      • setTarget

        public void setTarget​(Role target)