Package edu.uiuc.ncsa.security.core.util
Class IdentifiableImpl
- java.lang.Object
-
- edu.uiuc.ncsa.security.core.util.IdentifiableImpl
-
- All Implemented Interfaces:
Identifiable
,Serializable
,Cloneable
public class IdentifiableImpl extends Object implements Identifiable, Cloneable
Simple implementation of theIdentifiable
interface.Created by Jeff Gaynor
on 4/5/12 at 10:12 AM- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IdentifiableImpl(Identifier identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdentifiableImpl
clone()
boolean
equals(Object obj)
String
getDescription()
Identifier
getIdentifier()
Get the identiferString
getIdentifierString()
Convenience call to cast the identifier to a string.boolean
isReadOnly()
If this client is read only.void
setDescription(String description)
void
setIdentifier(Identifier identifier)
Set the identifier.void
setReadOnly(boolean readOnly)
-
-
-
Constructor Detail
-
IdentifiableImpl
public IdentifiableImpl(Identifier identifier)
-
-
Method Detail
-
clone
public IdentifiableImpl clone()
- Specified by:
clone
in interfaceIdentifiable
- Overrides:
clone
in classObject
-
getIdentifier
public Identifier getIdentifier()
Description copied from interface:Identifiable
Get the identifer- Specified by:
getIdentifier
in interfaceIdentifiable
- Returns:
-
getIdentifierString
public String getIdentifierString()
Description copied from interface:Identifiable
Convenience call to cast the identifier to a string.- Specified by:
getIdentifierString
in interfaceIdentifiable
- Returns:
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceIdentifiable
-
setDescription
public void setDescription(String description)
- Specified by:
setDescription
in interfaceIdentifiable
-
setIdentifier
public void setIdentifier(Identifier identifier)
Description copied from interface:Identifiable
Set the identifier.- Specified by:
setIdentifier
in interfaceIdentifiable
-
isReadOnly
public boolean isReadOnly()
If this client is read only. That means any attempt to save it or update it will throw an exception. This is used specifically if a client has prototypes that have been resolved. The resolved client should never be saved (since that would overwrite its actual definition).- Specified by:
isReadOnly
in interfaceIdentifiable
- Returns:
-
setReadOnly
public void setReadOnly(boolean readOnly)
- Specified by:
setReadOnly
in interfaceIdentifiable
-
-