Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package org.openmrs;
- import java.util.Set;
- public class AuthorizationPrincipal extends BaseOpenmrsMetadata implements java.io.Serializable {
- public static final long serialVersionUID = 1L;
- private Set<Privilege> privileges;
- private Integer authorizationPrincipalId;
- private String policy;
- /**
- * Default constructor
- */
- public AuthorizationPrincipal() {
- }
- /**
- * Constructor with name
- */
- public AuthorizationPrincipal(String name) {
- setName(name);
- }
- /**
- * @return the privileges
- */
- public Set<Privilege> getPrivileges() {
- return privileges;
- }
- /**
- * @param privileges the privileges to set
- */
- public void setPrivileges(Set<Privilege> privileges) {
- this.privileges = privileges;
- }
- /**
- * @return the policy
- */
- public String getPolicy() {
- return policy;
- }
- /**
- * @param policy the policy to set
- */
- public void setPolicy(String policy) {
- this.policy = policy;
- }
- public Integer getAuthorizationPrincipalId() {
- return this.authorizationPrincipalId;
- }
- public void setAuthorizationPrincipalId(Integer authorizationPrincipalId) {
- this.authorizationPrincipalId = authorizationPrincipalId;
- }
- @Override
- public Integer getId() {
- return getAuthorizationPrincipalId();
- }
- @Override
- public void setId(Integer id) {
- setAuthorizationPrincipalId(id);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment