|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.user.ProfileDomain
public final class ProfileDomain
This class is used by the UserServiceInitializer to hold the configuration data about Profiles. It has the URL of the server, a repository type, filtering information, a base (for LDAP), and a Java class name to instantiate. The UserService loadProfile() method passes this object to the Profile object's load() method so it will have the information it needs to perform the load from the persistent store.
Constructor Summary | |
---|---|
ProfileDomain(java.lang.String url,
java.lang.String type,
java.lang.String filter,
java.lang.String className)
Construct a new ProfileDomain with the configuration information from the UserService initialization. |
|
ProfileDomain(java.lang.String uid,
java.lang.String url,
java.lang.String type,
java.lang.String filter,
java.lang.String className)
Construct a new ProfileDomain with the configuration information from the UserService initialization. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates a clone of this object by copying the values for each of its attributes. |
boolean |
equals(java.lang.Object o)
Compare against another object for equality. |
java.lang.String |
getBase()
Get the LDAP search base to use when retrieving the profile object. |
java.lang.String |
getClassName()
Get the Java class name. |
java.lang.String |
getFilter()
Get the filter information. |
java.lang.String |
getLocalizedResourceType()
Gets a localized value describing the resource's type. |
java.lang.String |
getLocalizedResourceTypeAndValue()
Gets a localized value describing the resource's type and value. |
java.lang.String |
getResourceID()
Gets the id that uniquely identifies the resource within a service's configuration. |
java.lang.String |
getResourceType()
Gets a value describing the resource's type. |
int |
getResourceTypeCode()
Gets the code describing the resource's type. |
java.lang.String |
getResourceValue()
Gets the value used to identify the service configuration resource. |
java.lang.String |
getType()
Get the repository type to search for when loading this type of profile. |
java.lang.String |
getUrl()
Get the URL of the service that contains the profile information. |
int |
hashCode()
Gets the hash code. |
boolean |
isRequired()
Determines if this resource is required by the service's configuration. |
void |
setBase(java.lang.String base)
Set the base to use for searching LDAP for this profile object. |
void |
setClassName(java.lang.String className)
Set the Java class name to instantiate when creating an instance of this profile. |
void |
setFilter(java.lang.String filter)
Sets the filter information. |
void |
setType(java.lang.String type)
Sets the repository type to search for when loading this type of profile. |
void |
setUrl(java.lang.String url)
Sets the URL of the service that contains the profile information. |
java.lang.String |
toString()
Gets a string representation of this profile domain. |
static void |
validateDomainURL(java.lang.String domainURL)
Determines whether the candidate domain URL is syntactically valid. |
Constructor Detail |
---|
public ProfileDomain(java.lang.String url, java.lang.String type, java.lang.String filter, java.lang.String className)
url
- The URL of the service that the profile data is to
be retrieved from.type
- The repository type of the profile entity. The load
method may not need this, and this can be null.filter
- Filter information that can be used to search the
repository for the correct entity.className
- The Java class name to instantiate when this profile
is created. This parameter is required for profile loading to work
correctly.public ProfileDomain(java.lang.String uid, java.lang.String url, java.lang.String type, java.lang.String filter, java.lang.String className)
uid
- Unique identifier.url
- The URL of the service that the profile data is to
be retrieved from.type
- The repository type of the profile entity. The load
method may not need this, and this can be null.filter
- Filter information that can be used to search the
repository for the correct entity.className
- The Java class name to instantiate when this profile
is created. This parameter is required for profile loading to work
correctly.Method Detail |
---|
public static void validateDomainURL(java.lang.String domainURL) throws SyntaxException
<protocol>://<DNS host>[:<port number>]For example,
ldap://myhost.mycompany.com:9999
or dav://myhost.mycompany.com:9999
or omi://myhost.mycompany.com:9999
ldap://myhost.mycompany.com
or dav://myhost.mycompany.com:9999
domainURL
- Domain URL.
SyntaxException
- if the candidate domain URL is invalid. The
exception's message will provide a description of the syntax
violation suitable for presentation to the user.public java.lang.String getUrl()
public void setUrl(java.lang.String url)
url
- URL of the service that contains profile information.public java.lang.String getType()
public void setType(java.lang.String type)
type
- Repository's type.public java.lang.String getFilter()
public void setFilter(java.lang.String filter)
filter
- Filter.public void setBase(java.lang.String base)
base
- The LDAP search base.public java.lang.String getBase()
public void setClassName(java.lang.String className)
className
- The Java class name.public java.lang.String getClassName()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The object to compare against.
true
if the objects are equal, false
otherwisepublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone()
clone
in interface ConsumedResourceInterface
clone
in class java.lang.Object
public java.lang.String getResourceID()
ConsumedResourceInterface
getResourceID
in interface ConsumedResourceInterface
public java.lang.String getResourceValue()
ConsumedResourceInterface
getResourceValue
in interface ConsumedResourceInterface
public java.lang.String getLocalizedResourceType()
ConsumedResourceInterface
getLocalizedResourceType
in interface ConsumedResourceInterface
public java.lang.String getLocalizedResourceTypeAndValue()
ConsumedResourceInterface
getLocalizedResourceTypeAndValue
in interface ConsumedResourceInterface
public java.lang.String getResourceType()
ConsumedResourceInterface
getResourceType
in interface ConsumedResourceInterface
public int getResourceTypeCode()
ConsumedResourceInterface
getResourceTypeCode
in interface ConsumedResourceInterface
public boolean isRequired()
ConsumedResourceInterface
isRequired
in interface ConsumedResourceInterface
true
if this resource is required by the service's
configuration.public java.lang.String toString()
toString
in class java.lang.Object
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |