Class JpaResource
- java.lang.Object
-
- org.apache.archiva.redback.rbac.jpa.model.JpaResource
-
- All Implemented Interfaces:
Serializable
,Resource
@Entity public class JpaResource extends Object implements Resource, Serializable
Created by martin on 25.09.16.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JpaResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getIdentifier()
Get The string identifier for an operation.int
hashCode()
boolean
isPattern()
true if the identifer is a pattern that is to be evaluated, for example x.* could match x.a or x.b and x.** could match x.foo Jesse: SeeResource.setPattern(boolean)
boolean
isPermanent()
Test to see if the object is a permanent object or not.void
setIdentifier(String identifier)
Set The string identifier for an operation.void
setPattern(boolean pattern)
true if the identifer is a pattern that is to be evaluated, for example x.* could match x.a or x.b and x.** could match x.foo TODO is this even a good idea? TODO we could look for a character like '*' or a string starting with "%/" to indicate if this is a pattern or not.void
setPermanent(boolean permanent)
Set flag indicating if the object is a permanent object or not.
-
-
-
Constructor Detail
-
JpaResource
public JpaResource()
-
-
Method Detail
-
getIdentifier
public String getIdentifier()
Description copied from interface:Resource
Get The string identifier for an operation. NOTE: This field is considered the Primary Key for this object.- Specified by:
getIdentifier
in interfaceResource
-
setIdentifier
public void setIdentifier(String identifier)
Description copied from interface:Resource
Set The string identifier for an operation. NOTE: This field is considered the Primary Key for this object.- Specified by:
setIdentifier
in interfaceResource
-
isPattern
public boolean isPattern()
Description copied from interface:Resource
true if the identifer is a pattern that is to be evaluated, for example x.* could match x.a or x.b and x.** could match x.foo Jesse: SeeResource.setPattern(boolean)
-
setPattern
public void setPattern(boolean pattern)
Description copied from interface:Resource
true if the identifer is a pattern that is to be evaluated, for example x.* could match x.a or x.b and x.** could match x.foo TODO is this even a good idea? TODO we could look for a character like '*' or a string starting with "%/" to indicate if this is a pattern or not.- Specified by:
setPattern
in interfaceResource
-
isPermanent
public boolean isPermanent()
Description copied from interface:Resource
Test to see if the object is a permanent object or not.- Specified by:
isPermanent
in interfaceResource
- Returns:
- true if the object is permanent.
-
setPermanent
public void setPermanent(boolean permanent)
Description copied from interface:Resource
Set flag indicating if the object is a permanent object or not.- Specified by:
setPermanent
in interfaceResource
- Parameters:
permanent
- true if the object is permanent.
-
-