|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.TypedResource
com.starteam.LiveObject
com.starteam.TrackedObject
com.starteam.Principal
public abstract class Principal
A StarTeam Resource with the right to manipulate StarTeam Artifacts. Users and Groups are instances of Principals. Access Rights may be granted or denied.
Important Note: This abstract class is not intended to be implemented by
client applications. We reserve the right to add methods in the future.
Applications that implement this interface may not be compatible with
future versions of the StarTeam SDK.| Nested Class Summary | |
|---|---|
static class |
Principal.Type
The Type of the Principal |
static class |
Principal.WebCachePrincipal
Base accessor for cached SDK objects encapsulating the statefulness of objects obtained from the artifact cache. |
| Nested classes/interfaces inherited from class com.starteam.TrackedObject |
|---|
TrackedObject.WebCacheTrackedObject |
| Nested classes/interfaces inherited from class com.starteam.LiveObject |
|---|
LiveObject.WebCacheLiveObject |
| Nested classes/interfaces inherited from class com.starteam.TypedResource |
|---|
TypedResource.BranchState |
| Method Summary | |
|---|---|
abstract int |
getID()
Returns this principal's server wide unique integer identifier. |
abstract java.lang.String |
getName()
Returns the name of this principal |
abstract Server |
getServer()
Returns the Server object to which this principal belongs. |
abstract java.lang.Object |
getValue(Property property)
Return the value for the specified property. |
abstract boolean |
isDeleted()
Returns true if the Principal has been deleted. |
abstract boolean |
isDirty()
Returns true if any property has been modified from the
original value (including properties set on new items). |
abstract boolean |
isNew()
Returns true if this Principal has been created on the server yet. |
abstract void |
remove()
Removes this principal from the StarTeam server, plus any direct or indirect members of this principal. |
abstract void |
setName(java.lang.String name)
Changes the name of this principal. |
abstract java.lang.Object |
setValue(Property property,
java.lang.Object value)
Sets the value of the specified property and return the old value. |
abstract void |
update()
Persistently saves the changes to this principal in the server. |
| Methods inherited from class com.starteam.TrackedObject |
|---|
getModifiedBy, getModifiedTime |
| Methods inherited from class com.starteam.LiveObject |
|---|
getCreatedBy, getCreatedTime, toStarTeamURL |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public abstract int getID()
getID in class TypedResourcepublic abstract java.lang.String getName()
public abstract void setName(java.lang.String name)
update to
save this change.
name - the new name for the principal.Principal.update()public abstract java.lang.Object getValue(Property property)
getValue in class TypedResourceproperty - the name of property to be retrieved
NoSuchPropertyException - if the named property does not exist
public abstract java.lang.Object setValue(Property property,
java.lang.Object value)
setValue in class TypedResourceproperty - the property to setvalue - the new value to set for the specified property
NoSuchPropertyException - if the named property does not exist
java.lang.ClassCastException - if the value is of the wrong type for the specified propertypublic abstract void update()
java.lang.IllegalStateException - if this is a new Group with no Parent assigned.public abstract Server getServer()
getServer in class TypedResource
public abstract void remove()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if this principal was never saved, if it is a built-in
account, or if removing it would result in another principal
having no parent membership.
ServerException - if the logged in user does not have appropriate permissionspublic abstract boolean isNew()
isNew in class TypedResourcepublic abstract boolean isDirty()
true if any property has been modified from the
original value (including properties set on new items). Modified
properties are saved by a call to update().
isDirty in class TypedResourcepublic abstract boolean isDeleted()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||