Class RolePermissionXmlDTO

    • Constructor Detail

      • RolePermissionXmlDTO

        public RolePermissionXmlDTO()
        Constructs an empty RolePermissionXmlDTO instance.
      • RolePermissionXmlDTO

        public RolePermissionXmlDTO​(org.kuali.rice.kim.api.permission.PermissionContract permission,
                                    boolean populateIds)
        Constructs a RolePermissionXmlDTO that gets populated from the given KIM permission.
        Parameters:
        permission - The permission that this DTO should obtain its data from.
        populateIds - If true, the permission ID will get populated; otherwise, it will remain null.
    • Method Detail

      • getPermissionId

        public String getPermissionId()
        Returns:
        the permissionId
      • setPermissionId

        public void setPermissionId​(String permissionId)
        Parameters:
        permissionId - the permissionId to set
      • getPermissionNameAndNamespace

        public NameAndNamespacePair getPermissionNameAndNamespace()
        Returns:
        the permissionNameAndNamespace
      • setPermissionNameAndNamespace

        public void setPermissionNameAndNamespace​(NameAndNamespacePair permissionNameAndNamespace)
        Parameters:
        permissionNameAndNamespace - the permissionNameAndNamespace to set
      • getPermissionName

        public String getPermissionName()
        Retrieves the permission name from the permission-name-and-namespace combo.
        Returns:
        The name of the permission assigned to the role, or null if the permission-name-and-namespace combo is null.
      • getPermissionNamespaceCode

        public String getPermissionNamespaceCode()
        Retrieves the permission namespace code from the permission-name-and-namespace combo.
        Returns:
        The namespace code of the permission assigned to the role, or null if the permission-name-and-namespace combo is null.
      • getRoleId

        public abstract String getRoleId()
        Retrieves the ID of the role that the permission is assigned to. Subclasses are responsible for implementing this method so that it does so.
        Returns:
        The role ID of the role that the permission is assigned to.