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 theIdentifiableinterface.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 IdentifiableImplclone()booleanequals(Object obj)StringgetDescription()IdentifiergetIdentifier()Get the identiferStringgetIdentifierString()Convenience call to cast the identifier to a string.booleanisReadOnly()If this client is read only.voidsetDescription(String description)voidsetIdentifier(Identifier identifier)Set the identifier.voidsetReadOnly(boolean readOnly)
-
-
-
Constructor Detail
-
IdentifiableImpl
public IdentifiableImpl(Identifier identifier)
-
-
Method Detail
-
clone
public IdentifiableImpl clone()
- Specified by:
clonein interfaceIdentifiable- Overrides:
clonein classObject
-
getIdentifier
public Identifier getIdentifier()
Description copied from interface:IdentifiableGet the identifer- Specified by:
getIdentifierin interfaceIdentifiable- Returns:
-
getIdentifierString
public String getIdentifierString()
Description copied from interface:IdentifiableConvenience call to cast the identifier to a string.- Specified by:
getIdentifierStringin interfaceIdentifiable- Returns:
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceIdentifiable
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceIdentifiable
-
setIdentifier
public void setIdentifier(Identifier identifier)
Description copied from interface:IdentifiableSet the identifier.- Specified by:
setIdentifierin 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:
isReadOnlyin interfaceIdentifiable- Returns:
-
setReadOnly
public void setReadOnly(boolean readOnly)
- Specified by:
setReadOnlyin interfaceIdentifiable
-
-