|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.bigbross.bossa.resource.Resource
This class represents a single resource or a group of resources. A group of resources may include or exclude other resources.
| Method Summary | |
boolean |
contains(Resource resource)
Determines if a resource is contained in this resource. |
boolean |
exclude(Resource resource)
Excludes a resource from this resource. |
boolean |
excludeImpl(Resource resource,
boolean notify)
Excludes a resource from this resource. |
Set |
getExcludes()
Returns the excludes list of this resource. |
String |
getId()
Returns the resource identifier. |
Set |
getIncludes()
Returns the includes list of this resource. |
boolean |
include(Resource resource)
Includes a resource in this resource. |
boolean |
includeImpl(Resource resource,
boolean notify)
Includes a resource in this resource. |
boolean |
isGroup()
Returns true if this resource includes any other
resources, so it is a group. |
void |
remove(Resource resource)
Removes a resource from this resource. |
void |
removeImpl(Resource resource,
boolean notify)
Removes a resource from this resource. |
String |
toString()
Returns a string with the resource identifier. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public String getId()
public boolean isGroup()
true if this resource includes any other
resources, so it is a group.
true if it is a group,
false otherwise.public Set getIncludes()
public Set getExcludes()
public boolean include(Resource resource)
throws BossaException
resource - the resource to be included.
false if resource includes this resource,
true otherwise.
PersistenceException - if an error occours when making the
execution of this method persistent.
BossaException
public boolean includeImpl(Resource resource,
boolean notify)
This method does not create a transaction in the prevalent system. The execution of this method will not be persistent unless it is called inside an appropriate transaction.
resource - the resource to be included.notify - if this operation should be notified.
false if resource includes this resource,
true otherwise.
public boolean exclude(Resource resource)
throws BossaException
resource - the resource to be excluded.
false if resource excludes this resource,
true otherwise.
PersistenceException - if an error occours when making the
execution of this method persistent.
BossaException
public boolean excludeImpl(Resource resource,
boolean notify)
This method does not create a transaction in the prevalent system. The execution of this method will not be persistent unless it is called inside an appropriate transaction.
resource - the resource to be excluded.notify - if this operation should be notified.
false if resource excludes this resource,
true otherwise.
public void remove(Resource resource)
throws BossaException
resource - the resource to be removed.
PersistenceException - if an error occours when making the
execution of this method persistent.
BossaException
public void removeImpl(Resource resource,
boolean notify)
This method does not create a transaction in the prevalent system. The execution of this method will not be persistent unless it is called inside an appropriate transaction.
resource - the resource to be removed.notify - if this operation should be notified.public boolean contains(Resource resource)
contains in interface Containerresource - the resource to be looked for.
true if the resource is found,
false otherwise.public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||