/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2009 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: ApplicationPrivilege.java,v 1.3 2009/11/19 00:08:51 veiming Exp $
*/
/**
* Class representing delegation application privilege
*/
public class ApplicationPrivilege {
public enum PossibleAction
private long creationDate;
private long lastModifiedDate;
}
/**
* Sets entitlement subject.
*
* @param entitlementSubjects Entitlement subject
* @throws EntitlementException if subject is null.
*/
throws EntitlementException {
if (entitlementSubjects == null) {
throw new EntitlementException(327);
}
}
/**
* Returns the name of the privilege.
*
* @return name of the privilege.
*/
return name;
}
/**
* Sets the description of the privilege.
*
* @param desc Description of the privilege.
*/
description = desc;
}
/**
* Returns the description of the privilege.
*
* @return description of the privilege.
*/
return description;
}
/**
* Returns the eSubject the privilege
* @return eSubject of the privilege.
*/
return subjects;
}
/**
* Returns the condition the privilege
* @return condition of the privilege.
*/
return eCondition;
}
/**
* Sets the condition the privilege
* @param condition condition of the privilege.
*/
}
/**
* Returns creation date.
*
* @return creation date.
*/
public long getCreationDate() {
return creationDate;
}
/**
* Returns last modified date.
*
* @return last modified date.
*/
public long getLastModifiedDate() {
return lastModifiedDate;
}
/**
* Sets creation date.
*
* @param date creation date.
*/
creationDate = date;
}
/**
* Sets last modified date.
*
* @param date last modified date.
*/
}
/**
* Sets the user ID who last modified the policy.
*
* @param lastModifiedBy user ID who last modified the policy.
*/
this.lastModifiedBy = lastModifiedBy;
}
/**
* Sets the user ID who created the policy.
*
* @param createdBy user ID who created the policy.
*/
}
/**
* Returns the user ID who last modified the policy.
*
* @return user ID who last modified the policy.
*/
return lastModifiedBy;
}
/**
* Returns the user ID who created the policy.
*
* @return user ID who created the policy.
*/
return createdBy;
}
return applicationResources.keySet();
}
}
return actions;
}
public void addApplicationResource(
}
}
}
}
}