You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
744 B
28 lines
744 B
package ru.simsonic.rscPermissions.API; |
|
import java.sql.Timestamp; |
|
|
|
public class RowPermission implements Cloneable |
|
{ |
|
public int id; |
|
public String entity; |
|
public EntityType entityType; |
|
public String permission; |
|
public boolean value; |
|
public Destination destination; |
|
public int expirience; |
|
public Timestamp lifetime; |
|
public transient PlayerType playerType; |
|
public transient String destinationSource; |
|
@Override |
|
public RowPermission clone() throws CloneNotSupportedException |
|
{ |
|
return (RowPermission)super.clone(); |
|
} |
|
public boolean isEntityApplicable(String identifier) |
|
{ |
|
if(EntityType.group.equals(entityType)) |
|
return entity.equalsIgnoreCase(identifier); |
|
// TO DO |
|
return false; |
|
} |
|
}
|
|
|