Class ApplicationWrapper
- java.lang.Object
-
- org.forgerock.openam.entitlement.rest.wrappers.ApplicationWrapper
-
- All Implemented Interfaces:
Comparable<ApplicationWrapper>
public class ApplicationWrapper extends Object implements Comparable<ApplicationWrapper>
Wrapper for the Jsonification of the Application class. Taking an instance of anApplicationthis class exposes the necessary parts of that class to the JacksonObjectMappervia annotations. You cannot set the complex objectApplicationTypein a single simple operation as it requires verification of the subject's ability to access the referenced ApplicationType. As such, a second call to this wrapper must be made after the initial parsing of the JSON to populate the ApplicationType having first determined theSubjectwhich is requesting this operation.
-
-
Constructor Summary
Constructors Constructor Description ApplicationWrapper()Necessary default constructor for JsonApplicationWrapper(Application application, ApplicationTypeManagerWrapper appTypeManagerWrapper)
-
Method Summary
-
-
-
Constructor Detail
-
ApplicationWrapper
public ApplicationWrapper()
Necessary default constructor for Json
-
ApplicationWrapper
public ApplicationWrapper(Application application, ApplicationTypeManagerWrapper appTypeManagerWrapper)
-
-
Method Detail
-
getApplication
public Application getApplication()
-
setName
public void setName(String name)
-
getName
public String getName()
-
setDisplayName
public void setDisplayName(String id)
-
getDisplayName
public String getDisplayName()
-
setDescription
public void setDescription(String description)
-
getDescription
public String getDescription()
-
setApplicationType
public boolean setApplicationType(Subject mySubject, String applicationTypeName)
Retrieves theApplicationTypespecified by the request, ensuring that theSubjectsupplied has the authorization. Returns true if the ApplicationType was set successfully, false otherwise.- Parameters:
mySubject- The user's SubjectapplicationTypeName- The ApplicationType name to look up - the returning ApplicationType will be used- Returns:
- True if we set an ApplicationType on this Application
-
getApplicationType
public String getApplicationType()
-
setEntitlementCombiner
public void setEntitlementCombiner(String name) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
getEntitlementCombiner
public String getEntitlementCombiner()
-
setSearchIndex
public void setSearchIndex(String classname) throws ClassNotFoundException, InstantiationException, IllegalAccessException
-
getSearchIndex
public String getSearchIndex()
-
setSaveIndex
public void setSaveIndex(String classname) throws ClassNotFoundException, InstantiationException, IllegalAccessException
-
getSaveIndex
public String getSaveIndex()
-
setResourceComparator
public void setResourceComparator(String classname) throws ClassNotFoundException, InstantiationException, IllegalAccessException
-
getResourceComparator
public String getResourceComparator()
-
setCreatedBy
public void setCreatedBy(String createdBy)
-
getCreatedBy
public String getCreatedBy()
-
setLastModifiedBy
public void setLastModifiedBy(String lastModifiedBy)
-
getLastModifiedBy
public String getLastModifiedBy()
-
setCreationDate
public void setCreationDate(long creationDate)
-
getCreationDate
public long getCreationDate()
-
setLastModifiedDate
public void setLastModifiedDate(long lastModifiedDate)
-
getLastModifiedDate
public long getLastModifiedDate()
-
isEditable
public boolean isEditable()
-
toJsonValue
public org.forgerock.json.JsonValue toJsonValue() throws EntitlementException- Throws:
EntitlementException
-
compareTo
public int compareTo(ApplicationWrapper that)
- Specified by:
compareToin interfaceComparable<ApplicationWrapper>
-
-