|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.config.resources.CertPolicyResource
@Component public class CertPolicyResource
JAX-RS resource for managing certificate policy resources in the configuration service.
Although not required, this class is instantiated using the Jersey SpringServlet and dependencies are defined in the Sprint context XML file.
| Constructor Summary | |
|---|---|
CertPolicyResource()
Constructor |
|
| Method Summary | |
|---|---|
javax.ws.rs.core.Response |
addPolicy(javax.ws.rs.core.UriInfo uriInfo,
org.nhindirect.config.model.CertPolicy policy)
Adds a certificate policy to the system. |
javax.ws.rs.core.Response |
addPolicyGroup(javax.ws.rs.core.UriInfo uriInfo,
org.nhindirect.config.model.CertPolicyGroup group)
Adds a policy group to the system. |
javax.ws.rs.core.Response |
addPolicyUseToGroup(String groupName,
org.nhindirect.config.model.CertPolicyGroupUse use)
Adds a certificate policy usage to a policy group. |
javax.ws.rs.core.Response |
associatePolicyGroupToDomain(String groupName,
String domainName)
Associates a policy group to a domain. |
javax.ws.rs.core.Response |
disassociatePolicyGroupFromDomain(String groupName,
String domainName)
Removed a policy group from a domain. |
javax.ws.rs.core.Response |
disassociatePolicyGroupFromDomains(String groupName)
Removes a given policy group from all domains. |
javax.ws.rs.core.Response |
disassociatePolicyGroupsFromDomain(String domainName)
Removes all policy groups for a given domain. |
javax.ws.rs.core.Response |
getPolicies()
Gets all certificate policies in the system. |
javax.ws.rs.core.Response |
getPolicyByName(String policyName)
Gets a certificate policy by name. |
javax.ws.rs.core.Response |
getPolicyGroupByName(String groupName)
Gets a policy group name. |
javax.ws.rs.core.Response |
getPolicyGroupDomainReltns()
Gets all policy group to domain relationships. |
javax.ws.rs.core.Response |
getPolicyGroups()
Gets all policy groups in the system. |
javax.ws.rs.core.Response |
getPolicyGroupsByDomain(String domainName)
Gets all policy groups associated with a domain. |
javax.ws.rs.core.Response |
removedPolicyUseFromGroup(String groupName,
org.nhindirect.config.model.CertPolicyGroupUse use)
Removes a certificate policy usage from a policy group. |
javax.ws.rs.core.Response |
removePolicyByName(String policyName)
Deletes a certificate policy by name. |
javax.ws.rs.core.Response |
removePolicyGroupByName(String groupName)
Deletes a policy group from the system. |
void |
setCertPolicyDao(org.nhindirect.config.store.dao.CertPolicyDao policyDao)
Sets the policy Dao. |
void |
setDomainDao(org.nhindirect.config.store.dao.DomainDao domainDao)
Sets the domain Dao. |
javax.ws.rs.core.Response |
updateGroupAttributes(String groupName,
String newGroupName)
Updates the attributes of a policy group. |
javax.ws.rs.core.Response |
updatePolicyAttributes(String policyName,
org.nhindirect.config.model.CertPolicy policyData)
Updates the information of a certificate policy. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CertPolicyResource()
| Method Detail |
|---|
@Autowired public void setCertPolicyDao(org.nhindirect.config.store.dao.CertPolicyDao policyDao)
policyDao - CertPolicyDao Dao@Autowired public void setDomainDao(org.nhindirect.config.store.dao.DomainDao domainDao)
domainDao - DomainDao Daopublic javax.ws.rs.core.Response getPolicies()
public javax.ws.rs.core.Response getPolicyByName(String policyName)
policyName - The name of the certificate policy to retrieve.
public javax.ws.rs.core.Response addPolicy(@Context
javax.ws.rs.core.UriInfo uriInfo,
org.nhindirect.config.model.CertPolicy policy)
uriInfo - Injected URI context used for building the location URI.policy - The certificate policy to add.
public javax.ws.rs.core.Response removePolicyByName(String policyName)
policyName - The name of the certificate policy.
public javax.ws.rs.core.Response updatePolicyAttributes(String policyName,
org.nhindirect.config.model.CertPolicy policyData)
policyName - The name of the certificate policy to update.policyData - Data that should be update. Any null or empty attributes will result in that attribute not being updated.
public javax.ws.rs.core.Response getPolicyGroups()
public javax.ws.rs.core.Response getPolicyGroupByName(String groupName)
groupName - The name of the policy group to retrieve.
public javax.ws.rs.core.Response addPolicyGroup(@Context
javax.ws.rs.core.UriInfo uriInfo,
org.nhindirect.config.model.CertPolicyGroup group)
uriInfo - Injected URI context used for building the location URI.group - The policy group to add.
public javax.ws.rs.core.Response removePolicyGroupByName(String groupName)
groupName - The name of the policy group to delete.
public javax.ws.rs.core.Response updateGroupAttributes(String groupName,
String newGroupName)
groupName - The name of the policy group to update.newGroupName - The new name of the policy group.
public javax.ws.rs.core.Response addPolicyUseToGroup(String groupName,
org.nhindirect.config.model.CertPolicyGroupUse use)
groupName - The name of the policy group to add the usage to.use - The certificate policy usage to add to the policy group.
public javax.ws.rs.core.Response removedPolicyUseFromGroup(String groupName,
org.nhindirect.config.model.CertPolicyGroupUse use)
groupName - The name of the policy group to remove the usage from.use - The certificate policy usage to removed from the policy group.
public javax.ws.rs.core.Response getPolicyGroupDomainReltns()
public javax.ws.rs.core.Response getPolicyGroupsByDomain(String domainName)
domainName - The domain name to retrieve associate policy groups from.
public javax.ws.rs.core.Response associatePolicyGroupToDomain(String groupName,
String domainName)
groupName - The policy group name to associate to the domain.domainName - The domain name to associate to the policy group.
public javax.ws.rs.core.Response disassociatePolicyGroupFromDomain(String groupName,
String domainName)
groupName - The policy group name to remove from the domain.domainName - The domain name to remove from the policy group.
public javax.ws.rs.core.Response disassociatePolicyGroupsFromDomain(String domainName)
domainName - The domain to remove all policy groups from.
public javax.ws.rs.core.Response disassociatePolicyGroupFromDomains(String groupName)
groupName - The policy group to remove from all domains.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||