Modifier and Type | Field and Description |
---|---|
static String |
CREATED_BY_ATTRIBUTE
Created by index key
|
static String |
CREATION_DATE_ATTRIBUTE
Creation date index key
|
static String |
DESCRIPTION_ATTRIBUTE
Description attribute name,
|
static String |
LAST_MODIFIED_BY_ATTRIBUTE
Last modified by index key
|
static String |
LAST_MODIFIED_DATE_ATTRIBUTE
Last modified date index key
|
static String |
NAME_ATTRIBUTE
Name attribute name,
|
Constructor and Description |
---|
Application()
Public, default constructor
|
Application(String name,
ApplicationType applicationType)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addAllResourceTypeUuids(Set<String> resourceTypeUuids)
Adds the passed set of resource type UUIDs to the application.
|
void |
addAttributeNames(Set<String> names)
Adds attribute names.
|
void |
addResourceTypeUuid(String resourceTypeUuid)
Adds the passed resource type UUID to the application.
|
boolean |
canBeDeleted(String realm) |
Application |
clone() |
protected void |
cloneAppl(Application clone) |
ApplicationType |
getApplicationType()
Returns application type.
|
Set<String> |
getAttributeNames()
Return attribute names.
|
Set<String> |
getConditions()
Returns set of supported condition class names.
|
String |
getCreatedBy()
Returns the user ID who created the policy.
|
long |
getCreationDate()
Returns creation date.
|
String |
getDescription()
Returns description.
|
String |
getDisplayName()
Returns application display name.
|
EntitlementCombiner |
getEntitlementCombiner()
Returns a new instance of entitlement combiner.
|
Class |
getEntitlementCombinerClass()
Returns entitlement combiner class.
|
String |
getLastModifiedBy()
Returns the user ID who last modified the policy.
|
long |
getLastModifiedDate()
Returns last modified date.
|
Set<String> |
getMetaData()
Returns meta information.
|
String |
getName()
Returns application name.
|
ResourceName |
getResourceComparator()
Returns resource comparator for this Application, defaulting to the ApplicationType's
resource comparator if none is directly associated with this Application.
|
ResourceName |
getResourceComparator(boolean defaultToAppType)
Returns resource comparator for this Application.
|
Class |
getResourceComparatorClass()
Returns resource comparator class.
|
ResourceSaveIndexes |
getResourceSaveIndex(String resource)
Returns save indexes for a given resource.
|
ResourceSearchIndexes |
getResourceSearchIndex(String resource,
String realm)
Returns search indexes for a given resource.
|
Set<String> |
getResourceTypeUuids()
Retrieves the resource type UUIDs associated with the application.
|
ISaveIndex |
getSaveIndex()
Returns save index
|
Class |
getSaveIndexClass()
Returns save index class.
|
ISearchIndex |
getSearchIndex()
Returns search index
|
Class |
getSearchIndexClass()
Returns search index class.
|
Set<String> |
getSubjects()
Returns set of supported subject class names.
|
boolean |
isEditable()
An Application is editable if it can be changed by an end user.
|
void |
removeResourceTypeUuid(String resourceTypeUuid)
Removes the passed resource type UUID from the application.
|
void |
setApplicationType(ApplicationType applicationType)
Sets the application type of this Application
|
void |
setAttributeNames(Set<String> names)
Sets attribute names.
|
void |
setConditions(Set<String> conditions)
Sets supported condition class names.
|
void |
setCreatedBy(String createdBy)
Sets the user ID who created the policy.
|
void |
setCreationDate(long creationDate)
Sets the creation date.
|
void |
setDescription(String description)
Set description.
|
void |
setDisplayName(String displayName)
Sets the application display name.
|
void |
setEntitlementCombiner(Class entitlementCombiner)
Sets entitlement combiner.
|
void |
setEntitlementCombinerName(Class<? extends EntitlementCombiner> entitlementCombiner)
Sets entitlement combiner using the
EntitlementRegistry to look up
the appropriate class. |
void |
setLastModifiedBy(String lastModifiedBy)
Sets the user ID who last modified the policy.
|
void |
setLastModifiedDate(long lastModifiedDate)
Sets the last modified date.
|
void |
setMetaData(Set<String> meta) |
void |
setName(String name) |
void |
setResourceComparator(Class resourceComparator)
Sets resource comparator.
|
void |
setSaveIndex(Class saveIndex)
Sets save index.
|
void |
setSearchIndex(Class searchIndex)
Sets search index generator.
|
void |
setSubjects(Set<String> subjects)
Sets supported subject class names.
|
public static final String CREATED_BY_ATTRIBUTE
public static final String LAST_MODIFIED_BY_ATTRIBUTE
public static final String CREATION_DATE_ATTRIBUTE
public static final String LAST_MODIFIED_DATE_ATTRIBUTE
public static final String NAME_ATTRIBUTE
public static final String DESCRIPTION_ATTRIBUTE
public Application()
public Application(String name, ApplicationType applicationType)
name
- Name of Application.applicationType
- Its application type.public void setApplicationType(ApplicationType applicationType)
applicationType
- The non-null application typepublic Application clone()
protected void cloneAppl(Application clone)
public ApplicationType getApplicationType()
public Set<String> getConditions()
public Set<String> getSubjects()
public Class getEntitlementCombinerClass()
public EntitlementCombiner getEntitlementCombiner()
public String getName()
public String getDisplayName()
public void setConditions(Set<String> conditions)
conditions
- Supported condition class names.public void setSubjects(Set<String> subjects)
subjects
- Supported subject class names.public void setSaveIndex(Class saveIndex) throws InstantiationException, IllegalAccessException
saveIndex
- save index.InstantiationException
IllegalAccessException
public void setSearchIndex(Class searchIndex) throws InstantiationException, IllegalAccessException
searchIndex
- search index generator.InstantiationException
IllegalAccessException
public void setEntitlementCombiner(Class entitlementCombiner)
entitlementCombiner
- entitlement combiner.public void setEntitlementCombinerName(Class<? extends EntitlementCombiner> entitlementCombiner)
EntitlementRegistry
to look up
the appropriate class.entitlementCombiner
- name of the entitlement combiner to look uppublic void setResourceComparator(Class resourceComparator) throws InstantiationException, IllegalAccessException
resourceComparator
- resource comparator.InstantiationException
IllegalAccessException
public Set<String> getResourceTypeUuids()
public void addAllResourceTypeUuids(Set<String> resourceTypeUuids)
resourceTypeUuids
- The set of resource type UUIDs.public void addResourceTypeUuid(String resourceTypeUuid)
resourceTypeUuid
- The resource type UUID.public void removeResourceTypeUuid(String resourceTypeUuid)
resourceTypeUuid
- The resource type UUID.public ResourceSearchIndexes getResourceSearchIndex(String resource, String realm) throws EntitlementException
resource
- Resource to generate the indexes.realm
- Current realm to be searched.EntitlementException
- When an error occurs in the entitlements framework.public ResourceSaveIndexes getResourceSaveIndex(String resource)
resource
- resource to generate the indexes.public Class getSaveIndexClass()
public Class getSearchIndexClass()
public Class getResourceComparatorClass()
public ResourceName getResourceComparator()
public ResourceName getResourceComparator(boolean defaultToAppType)
defaultToAppType
- if true
, will return this Application's ApplicationType
resource comparator if none is set on the Application.public void setAttributeNames(Set<String> names)
names
- Attribute names.public void addAttributeNames(Set<String> names)
names
- Attribute names.public ISaveIndex getSaveIndex()
public ISearchIndex getSearchIndex()
public Set<String> getAttributeNames()
public String getDescription()
public void setDescription(String description)
description
- description.public long getCreationDate()
public void setCreationDate(long creationDate)
creationDate
- creation date.public long getLastModifiedDate()
public void setLastModifiedDate(long lastModifiedDate)
lastModifiedDate
- last modified date.public String getLastModifiedBy()
public void setLastModifiedBy(String lastModifiedBy)
lastModifiedBy
- user ID who last modified the policy.public String getCreatedBy()
public void setCreatedBy(String createdBy)
createdBy
- user ID who created the policy.public void setName(String name)
public void setDisplayName(String displayName)
displayName
- The application display name.public boolean canBeDeleted(String realm)
public boolean isEditable()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.